12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

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

Saved successfully!

Ooh no, something went wrong!