Pregunta


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

casi 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

casi 10 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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?

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

casi 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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;

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 10 años hace | 2 respuestas | 1

2

respuestas

Pregunta


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

casi 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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?

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 10 años hace | 1 respuesta | 0

1

respuesta

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

casi 10 años hace | 0

Pregunta


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!

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 10 años hace | 3 respuestas | 0

3

respuestas

Pregunta


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

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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?

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 10 años hace | 3 respuestas | 0

3

respuestas

Pregunta


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

alrededor de 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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?

alrededor de 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 10 años hace | 4 respuestas | 1

4

respuestas

Pregunta


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

alrededor de 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 10 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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

más de 10 años hace | 1 respuesta | 0

1

respuesta

Cargar más