Risposto
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.

oltre 8 anni fa | 1

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

oltre 8 anni fa | 1

| accettato

Risposto
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 ...

oltre 8 anni fa | 1

Risposto
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/...

oltre 8 anni fa | 1

Risposto
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...

oltre 8 anni fa | 0

Risposto
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,:)...

oltre 8 anni fa | 2

Risposto
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...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 1

| accettato

Risposto
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 '...

oltre 8 anni fa | 1

Risposto
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. ...

oltre 8 anni fa | 0

Risposto
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 ...

oltre 8 anni fa | 1

Risposto
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...

oltre 8 anni fa | 4

| accettato

Risposto
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 ...

oltre 8 anni fa | 3

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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://...

oltre 8 anni fa | 0

Risposto
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.

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 1

Risposto
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...

oltre 8 anni fa | 1

| accettato

Risposto
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...

oltre 8 anni fa | 0

Risposto
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 ...

oltre 8 anni fa | 1

Risposto
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] ...

oltre 8 anni fa | 2

| accettato

Risposto
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...

oltre 8 anni fa | 0

| accettato

Risposto
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...

oltre 8 anni fa | 1

Risposto
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 ...

oltre 8 anni fa | 0

| accettato

Risposto
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_...

oltre 8 anni fa | 2

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

oltre 8 anni fa | 1

Risposto
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(...

oltre 8 anni fa | 1

| accettato

Risposto
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...

oltre 8 anni fa | 2

Risposto
is Matlab compatible with endless OS?
<https://www.mathworks.com/support/sysreq.html> Matlab is compatible with Windows, Mac and Linux (Ubuntu 14.04 LTS, 16.04 LTS...

oltre 8 anni fa | 2

Carica altro