Question


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

10 years ago | 1 answer | 0

1

answer

Question


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

10 years ago | 1 answer | 0

1

answer

Question


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.

10 years ago | 1 answer | 0

1

answer

Question


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

10 years ago | 1 answer | 0

1

answer

Question


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

10 years ago | 1 answer | 0

1

answer

Question


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?

10 years ago | 2 answers | 0

2

answers

Question


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

10 years ago | 1 answer | 0

1

answer

Question


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

10 years ago | 1 answer | 0

1

answer

Question


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?

10 years ago | 2 answers | 0

2

answers

Question


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

10 years ago | 1 answer | 0

1

answer

Question


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

10 years ago | 1 answer | 0

1

answer

Question


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

10 years ago | 1 answer | 0

1

answer

Question


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

10 years ago | 2 answers | 0

2

answers

Question


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

10 years ago | 3 answers | 0

3

answers

Question


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

10 years ago | 2 answers | 0

2

answers

Question


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?

10 years ago | 0 answers | 0

0

answers

Question


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

10 years ago | 3 answers | 0

3

answers

Question


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

10 years ago | 1 answer | 0

1

answer

Question


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?

10 years ago | 1 answer | 0

1

answer

Question


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?

10 years ago | 1 answer | 0

1

answer

Question


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?

10 years ago | 1 answer | 0

1

answer

Question


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

10 years ago | 1 answer | 0

1

answer

Question


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

10 years ago | 2 answers | 0

2

answers

Question


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

10 years ago | 1 answer | 0

1

answer

Question


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

10 years ago | 1 answer | 0

1

answer

Question


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

10 years ago | 2 answers | 0

2

answers

Question


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

10 years ago | 1 answer | 0

1

answer

Question


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

10 years ago | 2 answers | 0

2

answers

Question


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

10 years ago | 1 answer | 0

1

answer

Question


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.

10 years ago | 1 answer | 0

1

answer

Load more