Answered
Check for incorrect argument data type or missing argument in call to function 'neighbors'.
@Star Strider had what I thought was the correct answer. In your if statement, you reverse the order of your inputs to neighbors...

15 días ago | 0

Answered
Read a file into app designer with a button and use later with another button
You need to load your mat file to an app property. Use the link above to create the property. Let's say you name it S. Then, i...

15 días ago | 0

Answered
Installation of whole Matlab package isn't possible
See this answer: https://www.mathworks.com/matlabcentral/answers/489806-why-do-i-see-the-error-something-unexpected-occurred-wh...

15 días ago | 0

Answered
Providing better feedback to students when assessing FUNCTION problems in MATLAB Grader
You could assign the value of a specific field to a separate variable, and then check that using assessVariableEqual. variable1...

16 días ago | 1

| accepted

Answered
Code in loop won't execute
Here, isdir is a field in the structure returned by dir, and not a use of the isdir function (I initially thought the same thing...

16 días ago | 0

| accepted

Answered
Function findobj does not find an object (?)
assert is for comparison. Your code is checking if the marker of the found line is an asterisk. It is not, so the result is the ...

16 días ago | 0

| accepted

Answered
Matlab 3D probabilty histogram by 2D array
It looks like that figure might have been created using the spectrogram function. See this example. fs = 10e3; t = 0:1/fs:2; ...

17 días ago | 0

Answered
Showing robot in app designer UIAxes
Do you have the Robotics System Toolbox installed? Type ver in the command window to see. If not, and you have access to it, you...

17 días ago | 0

Answered
How can I copy text, equations, figures and code from Live Editor to MATLAB Grader
Good question. Please open your live script in MATLAB Online. In a new tab of the same browser, open your MATLAB Grader problem...

17 días ago | 0

| accepted

Answered
Index exceeds the number of array elements (0)
The problems is you are trying to index an empty array. You define Xn=[]; and never assign it a value, but then try to index it ...

17 días ago | 0

| accepted

Answered
How to use Camera Toolbar in a MatLab Live Script
You can pop the figure out of a live script. To do this, either 1) hover over the figure in the live script and click the 'Open ...

18 días ago | 0

| accepted

Answered
How to delete, in a logical values matrix, rows that contain two or more false values (zero)?
A single function, no, but you can obtain your desired output easily enough. faces_logical = [0 0 0; 0 0 0; 0 0 1; 0 0 0; 1 0 1...

18 días ago | 0

| accepted

Answered
Update 3D plots when values are changed in app designer
The only callback function with plotting code in it is the dropdown menu callback function. Currently, this function only runs w...

18 días ago | 0

| accepted

Answered
how can i make a general matrix?
https://www.mathworks.com/learn/tutorials/matlab-onramp.html

18 días ago | 1

Answered
Make the question as specific as possible
https://www.mathworks.com/learn/tutorials/simulink-onramp.html

18 días ago | 0

| accepted

Answered
Chebyshev Type 2 filter not working as expected
You have a ringing artifact because you have such a high order filter. Notice that the y axis of your filtered data is scaled by...

19 días ago | 0

Answered
Reference to non-existent field 'Gait_0002'.
It would appear that Data.Gait{i} does not containt a fieldname Gait_0002. You are using your loop counter i, so it is hard to ...

19 días ago | 1

| accepted

Answered
MATLAB generating a ghost figure
You also need to specify the target axes/figure for your calls to hold and brush You should probably be using a uifigure instea...

19 días ago | 0

| accepted

Answered
how can i show that each name own different numbers with chart ?
There are a lot of ways. They just require some creativity. Here is one approach. names = categorical(["Mike","Mike","Mike","Jo...

19 días ago | 0

| accepted

Answered
How to draw rectangle inside plot figure?
Rectangle or triangle? Title and image show a rectangle so going with that. You could use the plot command and supply it with t...

19 días ago | 0

Answered
Huffman Dictionary, error with index exceed when i give specific probabilities.
The error is occuring the 27th time the while loop runs. prob only has a single value at this point, so sorted_p(2) does not exi...

20 días ago | 1

Answered
Error on Matlab grading system - Variable y has an incorrect value.
I took a new look and decided to back out your equations to see what is happening. My best guess is that you are inconsistent in...

20 días ago | 0

| accepted

Answered
Why the graph is not look like logistic graph?
The most likely reasons are 1) you have not gone out far enough in x or 2) you have not written a logistic expression. Note tha...

21 días ago | 0

| accepted

Answered
How to extract a data from a table using a string stored in a variable
See the Access Data in Tables page. a = (1:5)'; A = table(a) varname = "a"; A.(varname)

21 días ago | 0

| accepted

Answered
Error of the following code : "Array indices must be positive integers or logical values."
Not enough info to say for sure, but I suspect at some point, ind contains values that are not positive integers or logical valu...

22 días ago | 0

Answered
'histcounts2(y,x,Xedges,Yedges)' rather than 'histcounts2(x,y,Xedges,Yedges)' gives me the correct result, why?
Because the output of histcounts2 is an array, where rows correspond to X, and columns correspond to Y. When you use surf to dis...

22 días ago | 0

| accepted

Answered
How to write time stamp to a specific cell in csv file
I believe that is not an option with a csv file. They are text files, so don't have cells or ranges. It may be possible with a s...

22 días ago | 0

| accepted

Answered
Warning: Unable to play audio because no audio outputs were found.
Not sure what was happening over the weekend, but when I checked again today, it worked.

23 días ago | 0

Answered
How do I set the 'RelTol','AbsTol'?
That is how you set the tolerances. You do need to include opts in your call to ode15s. [t,y] = ode15s(odefun,tspan,y0,options)...

23 días ago | 0

Load more