Answered
classify row numbers of a table
Another way to do this, which could be simpler if you have more than 3 categories, is to use discretize. data = randi([-16, -10...

2 years ago | 3

Answered
Bug in axes when setting limmode. Is this a general issue when updating graphics objects?
I don't believe this is a bug. You just haven't given MATLAB a chance to update figures and process callbacks since you have nei...

2 years ago | 0

Answered
With the exception of static methods, you must pass an object of the class explicitly to a MATLAB method?
You're looking at this documentation page? It could be a bit clearer, but you should interpret that statement in the context set...

2 years ago | 0

| accepted

Answered
Software Warning Messages - Potential Name Conflict in Custom Functions
What do these commands display for you? which -all narginchk which -all istable Based on other messages I've seen on Answers ...

2 years ago | 0

Answered
Recently, did MatLab made any changes in 'imageDatastore' function ?
Can you check using the imfinfo function that the .tif file cited in the error message is in fact a valid image file? Do you see...

2 years ago | 1

Answered
Running Python Code in Matlab
Have you followed the first two Topics listed on this documentation page to set up Python and configure MATLAB to know where to ...

2 years ago | 0

Answered
The normalization of histcounts
For probability, each element in the output is the number of elements in the input that fall into that bin divided by the total ...

2 years ago | 1

| accepted

Answered
Constructing full matrix like a sparse one
It doesn't have exactly the same syntax as the sparse function, but I'd recommend you look at the accumarray function.

2 years ago | 1

| accepted

Answered
How to find the linear slope of a set of data points on a graph
T=[0 0.250000000000000 1.14000000000000 2.33000000000000 3.58000000000000 4.76000000000000 5.15000000000000 5.58000000000...

2 years ago | 0

Answered
Why won't parallel pool start under MCR r2022b?
Can you confirm that you've included the cluster profile in your application? See this documentation page for more information. ...

2 years ago | 0

Answered
How to prove that a destructor must be defined for the Value classes
The book tell me that Handle classes has build-in Destructor function. Which book is that? Are you referring to the documentati...

2 years ago | 2

Answered
How to estimate how long the inversion process will take?
syms ksm ksn ksl wsm wsn wsl Delsm Delsn Delsl DelT m Delgx Delgy Delgz dx syms tilda_Xu ro tilda_Xv qo tilda_Xw tilda_Xp wo ti...

2 years ago | 0

| accepted

Answered
There is superclass problem even if I don't have that superclass in MATLAB
What changes did you make to the app between the last time you were able to launch the app and the first time it failed? Did you...

2 years ago | 0

Answered
Check for incorrect argument data type or missing argument in call to function 'isShapeOnXY'
Please set an error breakpoint then run your code. When you receive the error run the following commands and show us the output....

2 years ago | 0

| accepted

Answered
i want to get adjacency matrix of a network
If you want to generate both the graph object and its adjacency matrix, tell MATLAB to build the graph using just the upper tria...

2 years ago | 0

Answered
Why classes need 'InferiorClasses' to determine which method to call when multiple classes have the same method
There are several different reasons. The first is that not all of our users are familiar with or comfortable using the object.me...

2 years ago | 0

| accepted

Answered
wordEmbeddingLayers() available in Deep Learning Toolbox?
The wordEmbeddingLayer class is part of Text Analytics Toolbox and was introduced in release R2018b. Perhaps that blog post sho...

2 years ago | 0

| accepted

Answered
I am trying to write a Matlab program that calculates the average and standard deviation of scores given and determines the letter grade
There are three main problems in your code. Sc=[72, 81, 44, 68, 90,53, 80, 75, 74, 65, 50, 92, 85, 69, 41, 73, 70, 86, 61, 65, ...

2 years ago | 2

| accepted

Answered
How to monitor a variables that is outside of a function
Functions operate in their own workspaces. The variable named aValue in the workspace of the caller of assignVar is not in the w...

2 years ago | 1

| accepted

Answered
How to create a pivot table from a generated plot (data comes from an Excel sheet)
If upgrading from R2020b is an option, release R2023a introduced the pivot function for creating a pivot table. If you want to ...

2 years ago | 0

Answered
ga problem of function state
Nothing in the output you posted shows any indication that there is an error in the code. There are two Code Analyzer warnings ...

2 years ago | 0

| accepted

Answered
I can't change workspace name matlab app designer
Can you dynamically create variables with numbered names like ALL_X_1, ALL_X_5, ALL_X_10, etc.? Yes. Should you do this? The ge...

2 years ago | 0

Answered
How to design a robust PI controller based on the Sensitivity peak value
Nowhere have you defined a variable named alpha, so when MATLAB sees alpha in your code it calls the alpha function with one out...

2 years ago | 1

Answered
understand if the cell is composed of all null elements
MATLAB is returning the correct result. The cell array is not empty, its size vector does not contain a 0. C = cell(1, 5) C{3}...

2 years ago | 1

| accepted

Answered
problem about precision in matlab
i am working with very small numbers near ordder 10^-20 in my calculations. in the program i wrote, matlab must calculate four n...

2 years ago | 1

Answered
"find" dont work for datetime variable ?
I suspect that find is working correctly and so is == when called on a datetime array, but == is not behaving as you expect. Let...

2 years ago | 0

Answered
Why can use this function with only on input?
b.nonSub1(a) just give one input Incorrect. As shown in the "Dot and Function Syntaxes" section on this documentation page this...

2 years ago | 0

| accepted

Answered
How can i generate .m file for a given simulink model?
Do you need to generate a MATLAB function file or do you just need to be able to simulate the model from MATLAB code? If the lat...

2 years ago | 0

Answered
How to fix table variable related error?
You expected for your table XX to contain a variable named td, but it doesn't. If you were trying to adapt another example to yo...

2 years ago | 0

Answered
Add 2 Numbers in a class
This syntax: x = Add; x.addNumbers(1,2); does not call the addNumbers method of the Add class with two inputs. It calls that ...

2 years ago | 0

Load more