Frage


How to use different colorbars on subplots?
As far as I see, I cannot define different colormap, caxis, colorbar, because MATLAB wants to use the last one for both subplots...

mehr als 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Is it possible draw left y-axis with red color and the right y-axis with blue color?
and use different colors for the left ylabel and right ylabel?

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to plot just a colorbar without plot?
I would like to plot just a colorbar on a subplot without real figure. I can do this, but I want to shrink the figure area. How ...

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to make axis line invisible but keep xlabel and ylabel?
I tried axis off, or set(gca,'xcolor','w'), but the problem is I want to keep the xlabel, morover white color is not good for me...

mehr als 6 Jahre vor | 1 Antwort | 2

1

Antwort

Frage


Is it possible to draw something outside the axis area?
Is it possible to draw a line outside the axis area near the labels?

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to use the same colorbar used on subplots?
Is it possible to use the same colorbar in case of different dynamics ranges on suplots?

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to save figure in pdf without margins?
Let us suppose I have a figure with definite pixel size: set(gcf,'unit','pixel','position',[0 0 figure_width figure_height]...

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to generate all permutations of numbers if I have a number twice?
I cannot use perms([1 2 2]) because I dont want 1,2,2 twice.

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Is it possible to change the running index in a for cycle?
for i = 1:10 if i == 3 i = i+2; end end

mehr als 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Is there a simpler way to find the index of the first non NaN value in a vector?
temp = X; temp(~isnan(temp)) = 1; temp(isnan(temp)) = 0; temp = find(temp); first_non_NaN_index_of_X = temp(1);

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to get the width and height of the drawable area of a window in pixels?
I can get the figure size in pixels like this: set(gcf,'units','normalized','position',[0 0 1 1]) set(gcf,'units','pixels'...

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to merge adjacent NaN values into single NaN value in a vector?
I have [1 2 3 NaN NaN 0 1 2 NaN 9 8 7 6 NaN NaN NaN 1 1] anf I want [1 2 3 NaN 0 1 2 NaN 9 8 7 6 NaN 1 1] without a for cycle. A...

mehr als 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to interpolate at NaN values?
I have a vector [1 2 3 NaN 4 4.5 5.5 NaN NaN 6 6 7 NaN NaN NaN 8] and I want [1 2 3 3.5 4 4.5 5.5 5.75 5.75 6 6 7 7.5 7.5 7.5 8]...

mehr als 6 Jahre vor | 4 Antworten | 1

4

Antworten

Frage


How count NaN values and replace NaNs in a sequence with that number?
I have a vector [0 0 NaN 0 0 NaN NaN NaN 0 0 0 0 0 NaN] and I want [0 0 1 0 0 3 3 3 0 0 0 0 0 1]. Is it possible without a for c...

mehr als 6 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


How to remove rows in which at least one NaN values can found?
How to remove rows in which at least one NaN values can found? Is it possible to do this in one script line?

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


There is no way to get memory information during the run under OSX with MATLAB?
memory works under Windows, but I cannot find any solution for OSX or Linux

mehr als 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Is it possible to get the MAC adress of the computer by MATLAB?
How to get this info?

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to get the name of the computer under MATLAB?
I want to register the name of the computer where my script is running. Is it possible to get this info?

mehr als 6 Jahre vor | 2 Antworten | 1

2

Antworten

Frage


How to monitor CPU usage with MATLAB?
I want to rescale runtime to get an effective runtime supposing 100% CPU.

mehr als 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Is it possible to install MATLAB on an iPad device?
Is it possible to install MATLAB on an iPad?

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to measure runtime, if it is possible to close my laptop during the run?
so I don't want to count the pause time, when CPU is not working.

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to get information about the underlying computer, for example gHz of the CPU?
How to get information about the underlying computer, for example gHz of the CPU?

mehr als 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Is it possible to list functions and scripts recursively used by a script?
How to list functions and scripts used by a script

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to extract a vector from a matrix with indices?
I have for example an 3x2 matrix M. And I need the first element from the first row, second element from the second row, and fir...

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to shuffle two vectors?
I have for example: V1 = [1 2 3 4 5 16 17 18 19 20]; V2 = [21 20 19 18 17 4 3 2 1 0]; and flip = [1 0 0 1 1 1 0...

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to force MATLAb to use 32bit floating-point numbers in a script?
Is it possible to use 32bit precision thru a script or part of the script without editing the whole code?

mehr als 6 Jahre vor | 1 Antwort | 1

1

Antwort

Beantwortet
How to plot png images with transparent background?
OK, but how to read the png to keep transparent background?

mehr als 6 Jahre vor | 0

Frage


How to plot png images with transparent background?
I've just used image(), and the transparent area are shown with black colour by default, however I need white background. I trie...

mehr als 6 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
3D matrix multiplication
I got the following error message: Error using mtimesx_build (line 120) Unable to compile mtimesx.c Error in mtimesx (lin...

mehr als 6 Jahre vor | 0

Frage


How to join pages to make a 3D matrix?
We can join columns with , ([x,y]) We can join rows with ; ([x;y]) But how to join pages? for example M(:,:,2) and M(:,:,1)

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden