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

presque 10 ans il y a | 2 réponses | 0

2

réponses

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

presque 10 ans il y a | 1 réponse | 0

0

réponse

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?

presque 10 ans il y a | 1 réponse | 0

1

réponse

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

presque 10 ans il y a | 2 réponses | 0

2

réponses

Question


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

presque 10 ans il y a | 2 réponses | 0

2

réponses

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;

presque 10 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 10 ans il y a | 2 réponses | 1

2

réponses

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

presque 10 ans il y a | 2 réponses | 0

2

réponses

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?

presque 10 ans il y a | 1 réponse | 0

1

réponse

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

presque 10 ans il y a | 1 réponse | 0

1

réponse

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

presque 10 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

presque 10 ans il y a | 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!

presque 10 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 10 ans il y a | 3 réponses | 0

3

réponses

Question


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

presque 10 ans il y a | 1 réponse | 0

1

réponse

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

presque 10 ans il y a | 2 réponses | 0

2

réponses

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?

presque 10 ans il y a | 1 réponse | 0

1

réponse

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

presque 10 ans il y a | 1 réponse | 0

1

réponse

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

presque 10 ans il y a | 3 réponses | 0

3

réponses

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

presque 10 ans il y a | 1 réponse | 0

1

réponse

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

environ 10 ans il y a | 1 réponse | 0

1

réponse

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?

environ 10 ans il y a | 1 réponse | 0

1

réponse

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

environ 10 ans il y a | 2 réponses | 0

2

réponses

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

environ 10 ans il y a | 1 réponse | 0

1

réponse

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

environ 10 ans il y a | 1 réponse | 0

1

réponse

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

environ 10 ans il y a | 4 réponses | 1

4

réponses

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

environ 10 ans il y a | 1 réponse | 0

1

réponse

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() ?

plus de 10 ans il y a | 1 réponse | 0

1

réponse

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

plus de 10 ans il y a | 1 réponse | 0

0

réponse

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

plus de 10 ans il y a | 1 réponse | 0

1

réponse

Charger plus