Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 .

  1. 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:

  1. MATLAB Function, e.g.: load, randn.
  2. 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
  3. 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.

image text in transcribed \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

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

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

How is the present value of an annuity determined?

Answered: 1 week ago