We now use MATLAB to zoom in on the graph $f(t)=2t^3$ and find the slope of the curve at $t=1$. Let's begin by graphing $f(t)=2t^3$ on the inteval $[0,2]$. To do this in Matlab, enter

fplot(@(t) 2*t^3,[0,2])

in the command window. Next, use the zoom tool (magnifying glass) on the figure toolbar to zoom in on the point $(1,f(1))$. Continue to zoom in until your figure appears to be a straight line. Your figure should now look similiar to the following;

Zoomed graph

On the figure toolbar, there is a tool called the "Data Cursor." Use this tool to find the coordinates at each endpoint of your zoomed graph. For example, on the zoomed image shown in the above figure, the Data Cursor tool shows that the left-hand endpoint has the coordinates $(0.97,1.825)$). Then use these coordinates to compute the slope, and so to estimate $f'(1)$.