Answered
error associated with Nargin
I just tested to confirm. For some odd reason you could use the |nargin| function in a script m-file. This returned the value fo...

9 years ago | 1

Answered
write in a specific line of text file
Use the append switch in |fopen|, |fprinft| an empty line, and |fprintf| the matrix with the FormatSpec of your choosing.

9 years ago | 1

Answered
How to download file from dropbox using e.g. websave?
For me using |?dl=1| instead of |?dl=0| did the trick.

9 years ago | 1

| accepted

Answered
GUI elements locations has changed position
My solution is not to use GUIDE in the first place. It sets a lot of parameters for you, many of which don't preserve backwards ...

9 years ago | 1

Answered
How can I get different 2D views of a 3d medical images which has been saved in 3D matrix?
There are many viewers to be found on the File Exchange. Have a look at the answers to <https://www.mathworks.com/matlabcentral/...

9 years ago | 1

Answered
Skip entries in a legend when plotting from a table
Use explicit handles in your call to |legend|. Make sure you only pass 1 element of each type into the handle array. h_d=pl...

9 years ago | 0

Answered
I want to load 2 images, remove the rows of the second one by one so the first image can be displayed instead of the second?
Do you want to display intermediary steps? Or save them into frames of a gif? Anyway, for gray scale images us |A(n,:)=B(n,:)...

9 years ago | 2

Answered
How to freedraw with a mouse, like in paint?
Use ButtonDownFcn (of the axes object) to set a flag, use WindowButtonUpFcn (of the figure) to reset the flag. Now you can set W...

9 years ago | 0

Answered
save bar plot in a for loop as pdf
Read <https://www.mathworks.com/help/matlab/ref/print.html the documentation>. It is no use to guess how a function works. The d...

9 years ago | 0

Answered
How can I make mlint return all the variable names in my .m-file?
Maybe they will change this in later releases, but currently m-lint can't detect possibly missing structure fields. I suspect th...

9 years ago | 1

| accepted

Answered
How do I download an older version of metlab?
<https://www.mathworks.com/downloads/web_downloads/download_release?release=R2015b> (you can find it again by searching for '...

9 years ago | 1

Answered
am getting an error on filter function using this image called _ *sweets.png*_
In Matlab, a color image is 3D, the third dimension being the color channels. You need to convert it to a grayscale image (e.g. ...

9 years ago | 0

Answered
How to free up memory used in a figure showing images?
Adam touches on a very important point: as soon as you start making GUIs, you should start using explicit parents for graphical ...

9 years ago | 1

Answered
How to prevent timer from executing code between two lines?
Write an explicit function for the TimerFcn that checks if a flag is set. Set that flag before your |fprintf| here and un-set it...

9 years ago | 4

| accepted

Answered
Installation and run from SD card
As long as you don't suddenly remove the drive, it should be all OK. I can't think of any reason why it would conflict with the ...

9 years ago | 3

Answered
Using pause, but stop if user input
<https://www.mathworks.com/help/matlab/ref/waitforbuttonpress.html |waitforbuttonpress|> may be of help here. You can also check...

9 years ago | 0

| accepted

Answered
How to plot a solid ellipsoid and get the xyz coordinates of all its points?
You can use the coordinates to convert it to a patch with faces and vertices, after which you should be able to modify <https://...

9 years ago | 0

Answered
How can I give certain values to my x-axis
<https://www.mathworks.com/help/matlab/ref/xlim.html |xlim|> can set the xlimits of your plot. Using |axis| is also possible.

9 years ago | 0

Answered
I want to read the images from multiple sub-folders, kindly help
Image analyst has written a function that can do this, see <https://www.mathworks.com/matlabcentral/answers/121033-how-to-loop...

9 years ago | 1

Answered
How to detect edge/contour of threshold image ?
<https://www.mathworks.com/help/images/ref/bwboundaries.html> If you don't have the image processing toolbox, things get much...

9 years ago | 1

| accepted

Answered
Too many input arguments error
I would assume this syntax sets the cdata property of all the children to the same image. If you want to do multiple things, use...

9 years ago | 0

Answered
How to synchronize three planes on the same figure to run simultaneously
Coincidentally, I am actually working on something that does that. It is not yet ready for the FEX, but I will remove the files ...

9 years ago | 1

Answered
Root Mean Square Value of Histogram
If you don't have the original data, you can approximate it with the code below. Histo = [1;47;56;1298;9770;1114;0;0;2] ...

9 years ago | 2

| accepted

Answered
Scope of 'ButtonDownFcn' property of lines in structure [R2017b]
To avoid these confusing bugs, it may be simpler to recreate the |handles| variable when you call the function: 'ButtonDown...

9 years ago | 0

| accepted

Answered
How to check the input from user is "positive integer Number" ?
Check out <https://www.mathworks.com/help/matlab/ref/validateattributes.html |validateattributes|> or <https://www.mathworks.com...

9 years ago | 1

Answered
How to fill square box according to percentage in Matlab?
Maybe this function: <https://www.mathworks.com/matlabcentral/fileexchange/39487-custom-marker-plot> (a word of warning: you ...

9 years ago | 0

| accepted

Answered
How to find out location where temperature is high based on color graph using Matlab?
# crop to the relevant part (remove axis and dashed lines) # convert to indices with |rgb2ind| # use |[r,c]=find(A_ind==min(A_...

9 years ago | 2

Answered
For loop with multiple variables
If you mean a nested loop: for st = 1:numel(pointst) for ed = 1:numel(pointed) end end

9 years ago | 1

Answered
could anyone help me to solve the error in the following code
You didn't use a check to see if you were leaving only 1 value for the last iteration. N_UE_rows=ceil(sqrt(randi([2, numel(...

9 years ago | 1

| accepted

Answered
Could anyone clarify my doubt with respect to the following code
The reason why the indices are different, is that |idx| is an index to |unused_rows|, which changes when you remove items from i...

9 years ago | 2

Load more