You are on page 1of 7

WEEK 6 & 7

PLOTTING THROUGH MATLAB
AND EXCEL

81.5. m=68.1. . >>v = ((g*m)/cd)*(1-exp(-cd/m)*t). cd=12..PLOTTING THROUGH MATLAB >>t=[0:2:20]’ >>length(t) ans = >>g=9. v= ….

>>plot(t.v) Go to Insert and label the title and axis or type the following statement in command window >>title(‘Plot of v versus t’) >>xlabel(‘values of t’) >>ylabel(‘value of v’) .

v.v.’x’) . >>grid >>plot(t. shape of each data point. Or use the following statement in command window.t.v. double click the x-axis perform the required job such as the grid.Go to plot tools icon.’o’) >>plot(t.

PLOTTING THROUGH EXCEL Introduce data for t and v in the EXCEL worksheet. 3. Introduce the first 2 numbers according to the desired format. 2. Drag the + sign and highlight the cell you want the number to appear. . 1. Get the + sign on the right hand side at the end of the 2 numbers. 4. To introduce series of number to a certain format through EXCEL. Highlight the 2 numbers.

. 2.To do calculation in EXCEL worksheet . get the + sign at the end of the right hand side of the cell. To copy the mathematical formula to the other cells is by highlighting the formula. 1. drag and highlighting the cells where the formula should be copied. Type = sign followed by the desired mathematical expression suitable for EXCEL in the cell where the calculation should be placed.

To plot the chart in EXCEL worksheet . 2. 3. . 7. Edit Series go to Series Name (label the series) and Series Value (highlight the data series at the worksheet to be plotted as y axis). 5. 6. Insert the chart and choose the line type. Click Edit of the Horizontal Categories and highlight the data of the x-axis in the worksheet. Right click the chart and select data. 4. Click Add of the Legend Series . Observed where the function intersect the x-axis where roots of the function located. 1. Click OK.