HW7_ruzmora

HW7_ruzmora - disp'time[s height[m table=[t h%Chapter 3 Problem 8b disp'Maximum height reached by the rocket max_h=max(h%Chapter 3 Problem 8c

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

View Full Document Right Arrow Icon
Sheet1 Page 1 %Chapter 3 Problem 2 %This program calculates the maximum range of an object shot at an angle clear all clc g=9.9 %m/s^2 v=100 %m/s a=[0:0.05:pi/2] %radians %Calculate the range R=(v^2/g)*sin(2*a) [R loc]=max(R) disp('The maximum range is obtained at theta') max_a=a(loc) %Chapter 3 Problem 4 %This program calculates a population's growth clear all clc p=100 %Initial population r=0.9 %rate of growth t=10 %years P=p*exp(r*t) %Chapter 3 Problem 8a %This program calculates the maximum height and time that a rocket achieves clear all clc t=0:2:100 %seconds h=2.13*t.^2-0.0013*t.^4+0.000034*t.^4.751 %Calculating height
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: disp('time[s] height[m]') table=[t' h'] %Chapter 3 Problem 8b disp('Maximum height reached by the rocket') max_h=max(h) %Chapter 3 Problem 8c Sheet1 Page 2 disp('Maximum height occurs at [s]') [h loc]=max(h) max_t=t(loc) %Chapter 3 Problem 9a %This program manipulates matrices clear all clc a=[3.4 2.1 0.5 6.5 4.2 4.2 7.7 3.4 4.5 3.9 b=a(:,1) %Chapter 3 Problem 9b c=a(2,:) %Chapter 3 Problem 9c d=a(:,1:3) %Chapter 3 Problem 9d e=a(2,3) %Chapter 3 Problem 9e ex=a(1,3) ex_1=a(2,4) ex_2=a(3,5) f=[ex ex_1 ex_2] Sheet1 Page 3 Sheet1 Page 4 8.9 8.3 1.5 3.4 3.9]...
View Full Document

This note was uploaded on 05/21/2010 for the course EEL 2161 taught by Professor Lopez during the Spring '10 term at FAU.

Page1 / 4

HW7_ruzmora - disp'time[s height[m table=[t h%Chapter 3 Problem 8b disp'Maximum height reached by the rocket max_h=max(h%Chapter 3 Problem 8c

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

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