Answered
Converting polar coordinates to X,Y,Z for 3d plots
Is there a reason that you can't use the built-in <https://www.mathworks.com/help/matlab/ref/pol2cart.html |pol2cart|>? If so, I...

9 years ago | 0

Answered
Running a script multiple times and recording outputs for each of the runs separately
If your code takes a very long time you might go for saving each result to a separate mat file. This would also enable running t...

9 years ago | 0

Answered
Wrong legend in plot
Have you taken a look at <https://www.mathworks.com/help/matlab/ref/legend.html the documentation>? For example, you can add |'L...

9 years ago | 0

Answered
GUI waitbar and script execution
The waitbar is simply a progressbar. You need to input the percentage yourself, usually it is best to do that at meaningful time...

9 years ago | 1

Answered
Finding equation of a line in R^3
You can solve this with pen and paper, or use |fit|. You can open the documentation to help you along by running |doc fit|. |fit...

9 years ago | 0

Answered
Wanted MATLAB compatible with windows8/10 64-bit OS.
Have you tried running as administrator? I'm running R2012b and R2017a just fine on Windows 10 64 bit, and if I did anything it ...

9 years ago | 0

Answered
Connecting GUI to an existing object
The variable/object/class |bar| does not exist in the callback, so you'll have to load it from the handles structure. I can't te...

9 years ago | 0

Answered
Changing color of individual parts of stacked bars
Tricking the bar plot by feeding it extra NaN data seems to work. The loop is ugly, but I can't see a nice way around it. It's a...

9 years ago | 3

| accepted

Answered
how to solve date serial number contains gap?
If you have trouble with a function, you should have a look at the <https://www.mathworks.com/help/matlab/ref/datenum.html docum...

9 years ago | 0

Answered
Store multiple variables for loop
There are a few things about your code that are not usually done. * if you know what size a matrix will be, pre-allocate it ...

9 years ago | 0

| accepted

Answered
How can I use subscript from html in Matlab? Please help.
If you want to use subscript in axis labels and things like that, Matlab has a LaTeX interpreter, so you can input the string as...

9 years ago | 0

Answered
Dynamic Scan DICOM File how to seperate into frames by number of counts
I assume the scan is too large to load at once? If not, how is the scan represented in data? If it is a 3D matrix, you can use a...

9 years ago | 0

Answered
plotting epoch time with nanoseconds
There are several ways you could plot this. Possibly the easiest is to simply plot the difference: plot(T2-T1) Other pos...

9 years ago | 1

| accepted

Answered
How do I convert a string to a date?
It is a bit confusing, but the capital S only denotes the fraction of a second, so not the second itself. The code below works. ...

9 years ago | 1

Answered
how to calculate snr of an image
The first hit on Google for me was the <https://en.wikipedia.org/wiki/Signal-to-noise_ratio#Alternative_definition Wikipedia pag...

9 years ago | 0

Answered
Convert cell to double
You will not be able to convert this to a double array, because a double only holds numbers, and 'RC448' is not a number. Theref...

9 years ago | 0

Answered
How to increase the pixel intensity of all pixels of an image
I advise you to rethink your approach. But if you really want to do this, you have to make sure you don't make your constant so ...

9 years ago | 0

| accepted

Answered
combining multiple or statements
As the documentation for |switch| suggests, making a cell array enables you to check multiple conditions at once. You can open t...

9 years ago | 1

| accepted

Answered
how to convert 66 x 2 cell array into matrix
A cell array will not show up as "66X2 double". Only a matrix of type double (the standard type) will do that. So the answer is ...

9 years ago | 0

| accepted

Answered
error in Matlab function: Inner matrix dimensions must agree
This function does very little. It is equivalent to this: function f = objfun(x,a,b) x1 = x(1:24); y1 = x(25:en...

9 years ago | 0

Answered
find matrix in cell matrix
Have you tried <https://www.mathworks.com/help/matlab/ref/ismember.html |ismember|>?

9 years ago | 0

Answered
Sort and add value from same neighbour value
If I am parsing your question correctly you're asking how you can remove empty lines from a cell and sum the values in the secon...

9 years ago | 1

| accepted

Answered
sliding window for a sampled signal
When you have the signal as a vector, you can use <https://www.mathworks.com/help/matlab/ref/movmean.html |movmean|> to find the...

9 years ago | 0

Answered
How to declare variable names from text file names?
For a sneak peak summary of what Stephen might say: <http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C.......

9 years ago | 0

Answered
segment a region in image using pixel coordinates
You can connect the two at the ends and then generate a mask with |inpolygon|, or a similar strategy.

9 years ago | 0

Answered
How to NaN selected threshold values of red,green and blue using matlab code
Don't hide information in the tags. Next time, have a read <https://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to...

9 years ago | 0

| accepted

Answered
Changing the background color
That really depends on the context. I have sometimes converted the image to greyscale and then called |bwlabel|. With that you c...

9 years ago | 0

| accepted

Answered
How can I get standard deviation of fitting coefficients from cftool?
You could approach this from the statistics side, instead of thinking of this as a Matlab problem. There might be a way to coax ...

9 years ago | 0

Answered
problem in icalab running
Since it is p-code, it is (almost) impossible to know why an error occurs. As long as your input is correct, the code should yie...

9 years ago | 0

| accepted

Answered
how to convert matrix column into separate text?
You obviously did not Google/Bing/Yahoo this. You can use a loop, combined with |sprintf| to do this. for n=1:45 ...

9 years ago | 0

| accepted

Load more