MATLAB Examples

book_3_72.m

Simple plot with bank45

load carbondioxide

plot(Year,CO2)
xlabel('Year')
ylabel('CO_2 (ppm)')
title('Monthly Average Carbon Dioxide')
bank45(Year,CO2)

%  Make just a little room around points
axis tight
ax = axis;
ax(1) = ax(1)-1;
ax(2) = ax(2)+1;
ax(3) = ax(3)-10;
ax(4) = ax(4)+10;
axis(ax)