Question
Can someone please help me i need this to be done on Matlab and has to be a runnable code.I need to include the three
Can someone please help me i need this to be done on Matlab and has to be a runnable code.I need to include the three categories.I need to also generate Im having a hard time and dont know what to do to solve this .
- Temperature Control System Simulation
Temperature data: Temperture_data_Taunton.txt
The data from U.S. Climate data, the first column is month, the second column is the average high in F for each month, the third column is the average low in F for each month.
3 categories:
- MATLAB Function, e.g.: load, randn.
- Matrix computation: e.g. Based on the average high and low, we could calculate the average for each month, e.g.: Average_Temp= (T_Data(:,2)+T_Data(:,3))/2
- Control Structures: While, e.g.: while temp 80 then ac on, temp=temp-0.02, pause (1) end.
Note:
Generate a random temperature: The air temperature in a building is on average 4-5 F higher than that of the air outside. So, when use randn to generate a random temperature you need to add 4-5 F. For example, let us generate a random temperature in January at Taunton. Get the data for the average high which is 37 F, the average low which is 18 F. We could use the (37+18)/2=27.5 as the mean, use the (37-18)/2=9.5 as the standard deviation. temp_outside= randn(1)*9.5+27.5; temp_inside=temp_outside+5. The temp_inside will be a great one for analysis.
\begin{tabular}{lll} 1 & 37 & 18 \\ 2 & 39 & 20 \\ 3 & 47 & 29 \\ 4 & 58 & 37 \\ 5 & 69 & 47 \\ 6 & 78 & 56 \\ 7 & 83 & 61 \\ 8 & 81 & 60 \\ 9 & 74 & 52 \\ 10 & 62 & 40 \\ 11 & 52 & 33 \\ 12 & 42 & 23 \end{tabular}
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