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

6 years ago | 0 answers | 0

0

answers

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?

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 2

1

answer

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?

6 years ago | 1 answer | 0

1

answer

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?

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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.

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 2 answers | 0

2

answers

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 2 answers | 0

2

answers

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

6 years ago | 4 answers | 1

4

answers

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

6 years ago | 3 answers | 0

3

answers

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?

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 0 answers | 0

0

answers

Question


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

6 years ago | 1 answer | 0

1

answer

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?

6 years ago | 2 answers | 1

2

answers

Question


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

6 years ago | 0 answers | 0

0

answers

Question


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

6 years ago | 1 answer | 0

1

answer

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.

6 years ago | 1 answer | 0

1

answer

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?

6 years ago | 0 answers | 0

0

answers

Question


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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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?

6 years ago | 1 answer | 1

1

answer

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

6 years ago | 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...

6 years ago | 2 answers | 0

2

answers

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

6 years ago | 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)

6 years ago | 1 answer | 0

1

answer

Load more