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

quasi 9 anni fa | 0

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

quasi 9 anni fa | 0

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

quasi 9 anni fa | 1

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

quasi 9 anni fa | 0

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

quasi 9 anni fa | 0

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

quasi 9 anni fa | 0

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

quasi 9 anni fa | 3

| accettato

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

quasi 9 anni fa | 0

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

quasi 9 anni fa | 0

| accettato

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

quasi 9 anni fa | 0

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

quasi 9 anni fa | 0

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

quasi 9 anni fa | 1

| accettato

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

circa 9 anni fa | 1

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

circa 9 anni fa | 0

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

circa 9 anni fa | 0

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

circa 9 anni fa | 0

| accettato

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

circa 9 anni fa | 1

| accettato

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

circa 9 anni fa | 0

| accettato

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

circa 9 anni fa | 0

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

circa 9 anni fa | 0

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

circa 9 anni fa | 1

| accettato

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

circa 9 anni fa | 0

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

circa 9 anni fa | 0

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

circa 9 anni fa | 0

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

circa 9 anni fa | 0

| accettato

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

circa 9 anni fa | 0

| accettato

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

circa 9 anni fa | 0

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

circa 9 anni fa | 0

| accettato

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

circa 9 anni fa | 0

| accettato

Risposto
I have a some problem in matlab 2015a(trial version), I can't use my function plz help me
The error message tells you what you need to know. You are asking Matlab to use the function |wlognfit|, but that doesn't exist ...

circa 9 anni fa | 0

Carica altro