lab 07 - EGR 1705 - Section 005 Lab 07 2/27/2008 Intro to...

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

View Full Document Right Arrow Icon
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, 'Description of lab: finding the performance of a rocket given the equations
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/08/2008 for the course ECE 1620 taught by Professor Perry during the Spring '08 term at Villanova.

Page1 / 4

lab 07 - EGR 1705 - Section 005 Lab 07 2/27/2008 Intro to...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online