MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics) MATLAB Function Reference (Volume 2: Graphics)

12.07.2015 Views

datetickExampleConsider graphing population data based on the 1990 U.S. census:t = (1900:10:1990)'; % Time intervalp = [75.995 91.972 105.711 123.203 131.669 ...150.697 179.323 203.212 226.505 249.633]'; % Populationplot(datenum(t,1,1),p) % Convert years to date numbers and plotgrid ondatetick('x',11) % Replace x-axis ticks with 2-digit year labels260240220200180160140120100806000 20 40 60 80 00See AlsoThe axes properties XTick, YTick, and ZTick.datenum, datestr2-124

default4Purpose2default4MATLAB Version 4.0 figure and axes defaultsSyntaxdefault4default4(h)Description default4 sets figure and axes defaults to match MATLAB Version 4.0defaults.default4(h) only affects the figure with handle h.See Alsocolordef2-125

default4Purpose2default4<strong>MATLAB</strong> Version 4.0 figure and axes defaultsSyntaxdefault4default4(h)Description default4 sets figure and axes defaults to match <strong>MATLAB</strong> Version 4.0defaults.default4(h) only affects the figure with handle h.See Alsocolordef2-125

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!