Question


How to plot a patch?
I have a plot, but I want to crop a rounded rectangle area from it. For example I have a sinusoid plane wave image plot, and I w...

10 years ago | 2 answers | 0

2

answers

Question


How to set paper size and aspect ratio properly?
I've set the figure size like this: set(gcf,'unit','pixel','position',[0 0 1400 800]); How to set paper size for pdf if I want...

10 years ago | 0 answers | 0

0

answers

Question


Is it possible to set YAxisLocation 'left' and 'right' at the same time?
Is it possible to set YAxisLocation 'left' and 'right' at the same time?

10 years ago | 1 answer | 0

1

answer

Question


Is it possible to control xtick size/height?
Is it possible to control xtick size. My problem is that xtick size is different in different subplots by default. (if axes are ...

10 years ago | 2 answers | 0

2

answers

Question


Is it possible to use axis tics lables without xtics?
Is it possible to use axis tics lables without xtics?

10 years ago | 2 answers | 0

2

answers

Question


How to get subset indices?
I have M = [1 2 3 6 7 8]; and x = [3 7 8]; And I want to get indices [3 5 6], so M(indices) = x;

10 years ago | 1 answer | 0

1

answer

Question


How to get real screen size?
For a MacBook retina display with get(0,'ScreenSize') I get [1 1 1280 800]; Why?

10 years ago | 2 answers | 1

2

answers

Question


How to extract value property pairs?
Are there any built in function for checking given input parameters by name-value pairs? Lots of standard MATLAB function use th...

10 years ago | 2 answers | 0

2

answers

Question


Is it possible to check properties of a function by its handle?
Is it possible to check input functions? For example is it the identity function, or is it constant?

10 years ago | 1 answer | 0

1

answer

Question


How to pass anonymus function handle to functions?
As I see in the documentation, this is the method: fun = @(x)x./(exp(x)-1); q4 = integral(fun,0,Inf); However this is very st...

10 years ago | 1 answer | 0

1

answer

Question


How to deactivate a licence or is it necessary in the following situation?
I've installed a new OSX on my MacBook and install a newer MATLAB version on the new system. It is working now, but I think I ha...

10 years ago | 1 answer | 0

1

answer

Answered
Why does MATLAB fail to load my preferred language on macOS Sierra?
I would like to run MATLAB 2013b on Sierra, but window with title "Error Starting Desktop" appears. Lots of error messages are i...

10 years ago | 0

Question


How to draw nice dotted lines?
My problem is that I want to save from MATLAB figure window to eps with the save as menu. But dotted lines appear very ugly!

10 years ago | 1 answer | 0

1

answer

Question


How to change gap between legend line and legend text?
How to change (horizontal) gap between legend line and legend text?

10 years ago | 3 answers | 0

3

answers

Question


Random seed has to be an integer?
Is it possible to use float random seeds?

10 years ago | 1 answer | 0

1

answer

Question


How to reach older versions help pages?
For example I am using 2013b, and mnrfit example from the help page (2016) is not working for me: load fisheriris; sp = catego...

10 years ago | 2 answers | 0

2

answers

Question


How to convert a matrix to cell array of vectors?
I have a matrix M x N matrix: R. r1 = R(1,:); r2 = R(2,:); etc. How to create cell array {r1,r2,...} from R automatically?

10 years ago | 1 answer | 0

1

answer

Question


Is it possible to evaluate several observation with one mnrval call?
In the .m file I can read the following: PHAT = MNRVAL(B,X) computes predicted probabilities for the nominal multinomial logisti...

10 years ago | 1 answer | 0

1

answer

Question


How to use arrayfun with a function having two vector arguments?
I have a function f(W,x), where W is a matrix and x is a vector. I would like to use arrayfun to calculate the f(W,x) for severa...

10 years ago | 3 answers | 0

3

answers

Question


What is the matrix operation mnrval does with its inputs?
mnrval(M,p) = ? I am asking this, because I have to test the performance of the learned decoder, but it is very slow with a h...

10 years ago | 1 answer | 0

1

answer

Question


How to set color scaling?
I would like to plot a surface or matrix with colors. How to set a linear scaling automatically by defining z1 to be color1 and...

10 years ago | 1 answer | 0

1

answer

Question


There is no meshgrid generator for arbitrary large dimensions?
I would like to use meshgrid like function but greater 2 or 3 dimensions. Is it possible?

10 years ago | 1 answer | 0

1

answer

Question


How to extract number of fields and name of fields from a structure?
I have s.a = 1; s.b = 'abc'; s.c = []; How to extract the name of the fields: 'a', 'b', 'c'? And the number of fields: 3 (in th...

10 years ago | 2 answers | 0

2

answers

Question


How to delete a subfield from a structure?
I have mystruct which have mystruct.data(1).x, mystruct.data(2).x, mystruct.data(1).y, mystruct.data(2).y, etc. How to delete m...

10 years ago | 1 answer | 0

1

answer

Question


How to convert struct filed to cell array before R2016a?
How to convert struct filed to cell array before R2016a? I want to convert mystruct(:).name to {'name1','name2','name3'}, whe...

10 years ago | 1 answer | 0

1

answer

Question


Is it possible to extract all fields from a structure automatically?
I have data in the form: mydata.x = 100; mydata.s = 'abc'; mydata.Y = [1 2 3]; And I want variables x = 100; s = 'abc'; Y = [1 ...

10 years ago | 4 answers | 1

4

answers

Question


How to merge loaded data structures?
I have a data1.mat file with data: mydata.x = 1; mydata.y = 2; mydata.a = 'yes'; mydata.Z = [1 2 3]; And I have d...

10 years ago | 1 answer | 0

1

answer

Question


How to write a function with two kind of output modes?
How to write a function which can be used as y = myfunc(), or [y,z] = myfunc() ?

10 years ago | 1 answer | 0

1

answer

Question


Is it possible to extract noise level if signal is unknown?
I have a signal + noise (for example Gauss) as a function of time. But I dont know the analytic model of the signal. Typically t...

10 years ago | 0 answers | 0

0

answers

Question


Are there any element function in MATLAB?
for example I cannot run this: sort(x)(1) nor (sort(x))(1), but I want to do this somehow in one line, for example with a built ...

10 years ago | 1 answer | 0

1

answer

Load more