Answered step by step
Verified Expert Solution
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
Chapter Question 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 to minutes in increments of seconds 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 degrees F and a standard deviation of degrees. To get this, multiply your temperatures vector by and add
b Plot the data with time on the axis and temperature on the 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 at time
Min temp of at time I
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started