Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can I please get help with problem 5 ? The code below is the code used for problem 5. clc clear disp('ENGR15100 Prelab 9') disp('Your

Can I please get help with problem 5? The code below is the code used for problem 5.

image text in transcribed

clc clear disp('ENGR15100 Prelab 9') disp('Your name here') disp(' ') %Run script file for rocket calculations rocket2h2 %rocket2h2.m % clc b=input('Enter desired burn time '); disp(' ') h_des=input('Enter desired height '); disp(' ') dt=.1; m=10; f=2000; g=32.2; %calculate constants v_b=(f/m-g)*b; h_b=0.5*(f/m-g)*b^2; h_p=h_b+v_b^2/(2*g); t_p=b+v_b/g; figure(2) %Begin calculating flight h=0; k=0; while h>=0 t=k*dt; k=k+1; if th_des %do-able! h=0; k=0; t=0; while h Problem 3 Based on the rocket code of pre-lab 8, write a script file firstname_lastname_lab9_problem3.m to: Calculate the velocity v and altitude h of the rocket from the time of launch to ground impact. Use inputs and values as before. i) ii) Create a two-row, one-column subplot in figure 3, where subplot one shows altitude h versus time, while subplot two shows velocity v versus time. Problem 4 Based on the rocket code of pre-lab 8, write a script file firstname_lastname_lab9_problem4.m to: Determine the time at which h-3000 ft on the way up. Use a FOR loop technique, a time step dt 0.1s, and other values and inputs as before. Print an error message if h 3000 ft is not reached. Use fprintf to display the result. ii) Problem 5 Based on the rocket code of pre-lab 8, write a script file firstname_lastname_lab9_problem5.m to: i) Determine the time at which h -3000 ft on the way up. Use a WHILE loop technique and a time step of dt = 0.05 s, and other values and inputs as before. Print an error message if h = 3000 ft is not reached. i) Use fprintf to display the result

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions