08.07.2015 Views

Introduction to MATLAB 7 for Engineers Chapter 1 An ... - FET

Introduction to MATLAB 7 for Engineers Chapter 1 An ... - FET

Introduction to MATLAB 7 for Engineers Chapter 1 An ... - FET

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Example of a Script File (continued)% Calculation section:dt = tf/500;% Create an array of 501 time values.t = [0:dt:tf];% Compute speed values.v = g*t;%% Output section:Plot(t,v),xlabel(’t (s)’),ylabel(’v m/s)’)1-39More? See pages 37-38.

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

Saved successfully!

Ooh no, something went wrong!