Domanda


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

oltre 5 anni fa | 0 risposte | 0

0

risposte

Domanda


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?

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 6 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 6 anni fa | 1 risposta | 2

1

risposta

Domanda


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

quasi 6 anni fa | 1 risposta | 0

1

risposta

Domanda


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?

quasi 6 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 6 anni fa | 1 risposta | 0

1

risposta

Domanda


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.

quasi 6 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 6 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 6 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 6 anni fa | 0 risposte | 0

0

risposte

Domanda


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

quasi 6 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 6 anni fa | 3 risposte | 0

3

risposte

Domanda


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

quasi 6 anni fa | 3 risposte | 0

3

risposte

Domanda


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?

quasi 6 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 6 anni fa | 0 risposte | 0

0

risposte

Domanda


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

quasi 6 anni fa | 1 risposta | 0

1

risposta

Domanda


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?

quasi 6 anni fa | 1 risposta | 1

1

risposta

Domanda


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

quasi 6 anni fa | 0 risposte | 0

0

risposte

Domanda


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

quasi 6 anni fa | 1 risposta | 0

1

risposta

Domanda


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.

quasi 6 anni fa | 1 risposta | 0

1

risposta

Domanda


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?

quasi 6 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 6 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 6 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 6 anni fa | 1 risposta | 0

1

risposta

Domanda


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?

circa 6 anni fa | 1 risposta | 1

1

risposta

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

circa 6 anni fa | 0

Domanda


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

circa 6 anni fa | 2 risposte | 0

2

risposte

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

circa 6 anni fa | 0

Domanda


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)

circa 6 anni fa | 1 risposta | 0

1

risposta

Carica altro