{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lab 07

lab 07 - EGR 1705 Section 005 Lab 07 Intro to Matlab 1.0...

This preview shows pages 1–2. Sign up to view the full content.

EGR 1705 - Section 005 Lab 07 2/27/2008 Intro to Matlab 1.0 INTRODUCTION In this lab we had to edit an M-script file and in this we changed variable ranges and wrote assignments statements as well as created graphs using Matlab. 2.0 PROBLEM DESCRIPTION In this problem we will find the performance of a rocket in Matlab, given the equations for distance, velocity, and acceleration. Given: Distance: d(t) = 90 + 2.125 t 2 - 0.00125 t 4 Velocity: v(t) = 4.25 t - 0.005 t 3 Acceleration: a(t) = 4.25 - 0.015 t 2 Minimum Outcomes: At the conclusion of this Lab the student should be able to: Create a M-script file Create a variable that ranges over a set of values Write assignment statements Create multiple graphs and a graph with multiple dependent variable sets 3.0 SOURCE CODE LISTING %**************************Comand Header*********************************** % Name: EGR 1705-Section 005 LAB 07 Date: 2/27/2008 % Description of lab: finding the performance of a rocket using the given % equations for distance, velocity, and acceleration % define output file 'lab07.out' for writing (text mode), assign to identifier 'lab' lab = fopen( 'Lab07.out' , 'wt' ); % Print info to file named above fprintf(lab, 'Name: \n' ); fprintf(lab, 'EGR 1705 - Section 005\n' ); fprintf(lab, 'LAB 07\n' ); fprintf(lab, 'Date: 2/27/2008\n' ); fprintf(lab,

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}