Frage


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

fast 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

fast 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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?

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

fast 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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;

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 10 Jahre vor | 2 Antworten | 1

2

Antworten

Frage


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

fast 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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?

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

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

fast 10 Jahre vor | 0

Frage


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!

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 10 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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?

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 10 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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

etwa 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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?

etwa 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 10 Jahre vor | 4 Antworten | 1

4

Antworten

Frage


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

etwa 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden