Question


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

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

0

réponse

Question


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?

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

1

réponse

Question


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

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

1

réponse

Question


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

plus de 6 ans il y a | 1 réponse | 2

1

réponse

Question


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

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

1

réponse

Question


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?

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

1

réponse

Question


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

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

1

réponse

Question


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.

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

1

réponse

Question


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

plus de 6 ans il y a | 2 réponses | 0

2

réponses

Question


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);

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

1

réponse

Question


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

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

1

réponse

Question


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

plus de 6 ans il y a | 2 réponses | 0

2

réponses

Question


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

plus de 6 ans il y a | 4 réponses | 1

4

réponses

Question


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

plus de 6 ans il y a | 3 réponses | 0

3

réponses

Question


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?

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

1

réponse

Question


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

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

0

réponse

Question


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

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

1

réponse

Question


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?

plus de 6 ans il y a | 2 réponses | 1

2

réponses

Question


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

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

0

réponse

Question


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

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

1

réponse

Question


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.

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

1

réponse

Question


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?

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

0

réponse

Question


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

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

1

réponse

Question


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

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

1

réponse

Question


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

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

1

réponse

Question


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?

plus de 6 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
How to plot png images with transparent background?
OK, but how to read the png to keep transparent background?

plus de 6 ans il y a | 0

Question


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

plus de 6 ans il y a | 2 réponses | 0

2

réponses

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

plus de 6 ans il y a | 0

Question


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)

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

1

réponse

Charger plus