Domanda


How to set the proper papersize?
I would like to use: figure('units','normalized','outerposition',[0 0 1 1]); to see my figures in the largest size on my scr...

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


How to set legend for a line segment?
How to add legend to this?: line([x1 x2],[y1,y2],'color','r','linestyle','--');

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


Is it possible to plot/generate properly displayed thick arrows?
My problem is that annotated arrows with thickness are displayed very poorly and the saved pdf is still totally bad.

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


How to generate vectorgraphic pdf from MATLAB?
My problem is that saveas and print generates different outputs, and saving from the figure window results also totally differen...

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


Anyone know how to display the degree symbol?
Anyone know how to display the degree symbol ° in a text object on a plot? I've tried both solutions: http://www.mathworks.com...

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


Is it possible to put xlabel text in two rows but with different font size?
Is it possible to put xlabel text in two rows but with different font size?

oltre 10 anni fa | 2 risposte | 0

2

risposte

Domanda


How to load data without reloading?
I would like to load variables from a .mat file, but just those ones which are not loaded before. It is possible not overwrite t...

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


How to do scatter plot with markers with dashed outlines?
Is it not possible?

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


I have to write this down twice?
X(i1:i2) = X(i1:i2) - const; Do I have to use X(i1:i2) twice in the line to achieve the result above?

oltre 10 anni fa | 2 risposte | 0

2

risposte

Domanda


Is it possible to this shorter? max two lines?
[t1 t2 t3 t4 t5] = deal(0.6,2.0,0.5,2.5,15); n_values = round([t1 t2 t3 t4 t5]/dt); % temp variable [n1 n2 n3 n4 n5] = d...

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


is it allowed to update the cycle variable?
% for example: for i = 1:N i = i +3; end

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


What is this error message?
I get the following error message after a while in command/terminal mode (2013b): log4j:WARN No appenders could be found for ...

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


how to shuffle two vectors?
What is the simplest way to shuffle two vectors? It is possible to do it in one line? from u and v I want: [u(1),v(1),u(2),v(...

oltre 10 anni fa | 2 risposte | 0

2

risposte

Domanda


how to get struct array field as a vector?
I have a struct array, and a field like data.age and I want to get the ages as a vector v for which I can write for example : v(...

oltre 10 anni fa | 3 risposte | 0

3

risposte

Domanda


how to initialise field name of struct array?
I want to set some fields of a struct array, like .name .age .id then I want to put data in one line. Is it possible to do some...

oltre 10 anni fa | 2 risposte | 0

2

risposte

Domanda


Is it possible to save both data and functions into a .mat file?
Is it possible to save both data and functions into the same .mat file?

oltre 10 anni fa | 0 risposte | 0

0

risposte

Domanda


how to initialise a struct array with pairs?
I want to keep pairs next to each other during initialisation. The result what I want is something like this: data(1...

oltre 10 anni fa | 3 risposte | 0

3

risposte

Domanda


How to do the following in one line?
data = data(data>xmin); data = data(data<xmax); This is not working: data = data(data>xmin && data<xmax);

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


Is it possible to save high resolution jpg with the saveas command?
Is it possible to save high resolution jpg (or png, tiff) with the saveas command? How to set the resolution?

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


How to get absolute aspect ratio of a figure?
How to get absolute (in screen pixel units) aspect ratio of an existing figure window? or the plotting area?

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


Is it possible to force xtick to be visible everywhere?
Is it possible to force xtick layer goes on top of the plot, so the plot cannot cover xticks?

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


How to use bar plot without outlines?
I don't want to make the outlines invisible, but I want the width to be zero, however the description says that LineWidth has to...

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


How to rotate histograms?
How to plot histogram on the y-axis?

oltre 10 anni fa | 2 risposte | 0

2

risposte

Domanda


How to change axes during a for cycle?
I would like to make a figure and show the axes and tics without any plot at this moment. After that I would like to plot sever...

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


How to create axes without any connection to the current plot?
I would like to create/define axes to use it later, and do something like this: ax = axes('Position',[0,0,0.1,0.1],'Visible',...

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


Why makehgtform creates 4x4 matrices? Why not 3x3?
I cannot found the answer on its description page. Why? This is so obvious??

oltre 10 anni fa | 2 risposte | 0

2

risposte

Domanda


How to apply a transformation with makehgtform()?
I would like to learn how to apply transformations with makehgtform(). This is toy example: % Create a red octagon using th...

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


Whats wrong with the following commands?
% The plotted x-axis goes from 0 to 1, instead of 20. Why? ax = gca; ax.xlim = [0 20]; drawnow

oltre 10 anni fa | 2 risposte | 0

2

risposte

Domanda


How to use string cells as marker types?
scatter([1],[1],20,'filled','o'); is working, but the following not: markers = {'o','s','d'}; scatter([1],[1],20,'f...

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


is it possible to shift and resize a plot in the figure without using subplot?
I would like to shift and resize a plot relative to the whole figure.

oltre 10 anni fa | 1 risposta | 0

1

risposta

Carica altro