Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTLON 3 3 . 2 1 Chapter 3 Question 2 1 from MATLAB for Engineers ( Ffith edition ) by Holly Moore - with modifications

QUESTLON 3
3.21 Chapter 3 Question 21 from MATLAB for Engineers (Ffith edition) by Holly Moore - with modifications
Suppose you are designing a container to ship sensitive medical materials between hospitals. The container needs to keep the contents within a specified temperature range. You have created a model predicting how the container responds to the exterior temperature, and you now need to run a simulation.
a. Create a vector of times from 0 to 120 minutes in increments of 30 seconds (0.5 minutes).
Then use randn to generate a vector of random, normally distributed values to represent temperature. Use length to ensure that the temperature vector is the same length as the times vector.
We want the temperatures to have a mean of 70 degrees F and a standard deviation of 2 degrees. To get this, multiply your temperatures vector by 2 and add 70.
b. Plot the data with time on the x axis and temperature on the y axis. Title and label your plot.
c. Find the maximum temperature, the minimum temperature, and the times at which they occur. This will require you to get the position (or index) of the max and min using code like this:
[max temp, index]= max (temperatures) i
And then use the index value to find the corresponding value in the times vector, Display your output,
Your output should look similar to the followingt
Max temp of 74,85 at time 69,5
Min temp of 65,01 at time 48,5 I
image text in transcribed

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

Step: 3

blur-text-image

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

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

What are the HRM implications of this type of merger?

Answered: 1 week ago

Question

What is an RPIC, and where was it required?

Answered: 1 week ago