Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a single . m file script with both the following parts: Part 1 : Using a For Loop, solve for dynamic pressure, q =

Write a single .m file script with both the following parts:
Part 1:
Using a For Loop, solve for dynamic pressure, q =0.5* density * velocity^2, from zero velocity to 250 m/s, in steps of 10 m/2, at sea level (density =1.225 kg/m^3). Be careful with your index here.
Display to the Command Window the index and value for q at each step through the loop.
Part 2:
Write a For Loop that executes 20 times, and within that loop write an If Statement that uses the MATLAB rand() random number generator to generate a value. Have the If Statement evaluate that value and then display to the Command Window:
"too small" for a value less than 0.33
"just right" for a value greater than or equal to 0.33 and less than 0.66
"too big" for a value greater than or equal to 0.66
Comment all variable names within the file, including units for those that have units.

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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions

Question

Describe the factors influencing of performance appraisal.

Answered: 1 week ago

Question

Is there a clear hierarchy of points in my outline?

Answered: 1 week ago