Question

Interactively delete data points from a line plot without creating break in line

Using brush mode, if I delete a data point xi of a line plot with markers, it results in a plot that has no line between points ...

6 years ago | 0 answers | 0

Question

Efficiently setting lower axis limit

I would like to set the lower axis limit and leave the upper limit at the auto value (rather than specifcy the upper limit mysel...

8 years ago | 4 answers | 1

Question

Changing color of single bars in a bar plot

Hello, The following will give a bar plot consisting of 2 groups of 3 bars: figure(1),clf xdata = [1 2]; ydata =...

8 years ago | 2 answers | 0

Answered

Reordering columns in a matrix

Thanks for the suggestions. I should have been more explicit in my question. I want to do the arithmetic before rearranging beca...

Reordering columns in a matrix

Thanks for the suggestions. I should have been more explicit in my question. I want to do the arithmetic before rearranging beca...

8 years ago | 0

Question

Reordering columns in a matrix

Hello, I want to multiply 2 matrices elemntwise and swap columns 1 and 2 in the result: A = [1 2 3; 1 2 3; 1 2 3; 1 2 ...

8 years ago | 5 answers | 0

Question

Case sensitivity of uigetfile

Is it possible to make the FilterSpec in the uigetfile function case insensitive? If I want to be able to select either *.xls o...

8 years ago | 1 answer | 1

Answered

Clearing variables using a list of variable names

Just realised it was as simple as doing: clear(varlist{:})

Clearing variables using a list of variable names

Just realised it was as simple as doing: clear(varlist{:})

8 years ago | 0

| accepted

Question

Clearing variables using a list of variable names

Hello, I have a cell array called 'varlist' that contains the names of variables that I want to clear from the workspace. What ...

8 years ago | 1 answer | 0

Answered

Which curve fitting function do I need?

Thanks cyclist & proecsm. I tried both nlinfit and lsqcurvefit and they both do the job. With simulated noisy data, I seem to be...

Which curve fitting function do I need?

Thanks cyclist & proecsm. I tried both nlinfit and lsqcurvefit and they both do the job. With simulated noisy data, I seem to be...

8 years ago | 0

Question

Which curve fitting function do I need?

I want to fit the following function to measured data in order to estimate R: D = atan2(sin(H),R*cos(H)) I have measured H & D...

8 years ago | 4 answers | 0

Question

Can I save / preserve list of scripts open in the editor?

I am working with some data and have about 8 scripts open in the editor to enable me to do this. Is it possible to save the iden...

8 years ago | 2 answers | 0

Answered

Efficiently converting a 3d matrix to a 2d matrix

Thank you Andrew & cyclist, Both solutions work. Cyclist's permute solution is more efficient, taking approx approx 17% of th...

Efficiently converting a 3d matrix to a 2d matrix

Thank you Andrew & cyclist, Both solutions work. Cyclist's permute solution is more efficient, taking approx approx 17% of th...

9 years ago | 0

Question

Efficiently converting a 3d matrix to a 2d matrix

Hello, I would like to convert a 3d matrix into a 2d matrix. I want the 3rd dimension to be concatenated along dimension 1 in...

9 years ago | 3 answers | 3