Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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.

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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?

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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?

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 10 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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?

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 10 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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?

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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?

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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?

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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.

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden