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 5 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 5 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 5 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 5 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 5 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 5 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 5 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 5 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 5 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 5 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 5 ans il y a | 1 réponse | 0

0

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 5 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 5 ans il y a | 3 réponses | 0

3

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 5 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?

presque 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

presque 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?

presque 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?

presque 6 ans il y a | 1 réponse | 1

1

réponse

Question


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

presque 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?

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

presque 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?

presque 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

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

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

presque 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?

presque 6 ans il y a | 1 réponse | 1

1

réponse

A répondu
How to plot png images with transparent background?
OK, but how to read the png to keep transparent background?

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

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

2

réponses

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

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

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

1

réponse

Charger plus