Question

In: Electrical Engineering

Part 1. MATLAB Programming The wind chill factor measures how cold it feels with a given...

Part 1. MATLAB Programming The wind chill factor measures how cold it feels with a given air temperature T (in degrees Fahrenheit) and wind speed (V, in miles per hour). The formula is approximately

?????? = 35.7 + 0.6?? ? 35.7(??0.16) + 0.43??(??0.16)

a). Write a function that will calculate the wind chill factor (WCF) given temperature and wind speed. Your function should round down to the nearest integer.

b). Write a script that will use the function above to create a table of wind chill factors, similar to the one shown at https://en.wikipedia.org/wiki/Wind_chill#/media/File:Wind_chill.png. Wind speed should be down the left and temperature across the top. PLEASE SHOW OUTPUT THANKYOU

Solutions

Expert Solution

(a)

prompt_temp = 'Enter Temperature ';
T = input(prompt_temp);
prompt_velocity = 'Enter Wind Velocity';
W = input(prompt_velocity);
wind_chill_output = wind_chill(T,V)

function wind_chill_output = wind_chill(T,V)
wind_chill_output=round(35.74+0.6215*T-35.75*V^0.16+0.4275*T*V^0.16);
end
disp(wind_chill_output);

(b)

T=(40:-5:-45);

V=(5:5:60);

for i=1:length(V)

for j=1:length(T)

W(i,j)=round(35.74+0.6215*T(j)-35.75*V(i)^0.16+0.4275*T(j)*V(i)^0.16);

end

end

disp(W);


Related Solutions

Part 1. MATLAB Programming The wind chill factor measures how cold it feels with a given...
Part 1. MATLAB Programming The wind chill factor measures how cold it feels with a given air temperature T (in degrees Fahrenheit) and wind speed (V, in miles per hour). The formula is approximately WCF = 35.7 + 0.6T ? 35.7(V0.16) + 0.43T(V0.16) a). Write a function that will calculate the wind chill factor (WCF) given temperature and wind speed. Your function should round down to the nearest integer. b). Write a script that will use the function above to...
The wind chill factor depends on wind speed and air temp. This data represents the wind...
The wind chill factor depends on wind speed and air temp. This data represents the wind speed (in miles per hour) and wind chill factor at an air temp. of 15 degrees F. Wind speed(x) 5, 10, 15, 20, 25, 30, 35 Wind chill(y) 12, -3, -11, -17, -22, -25, -27 Compute the least squares regression line and correlation coefficient for this data. Predict the wind chill for a wind speed of 50 miles per hour. Determine the wind speed...
C Programming- How would the whole part 1 be coded with multiple loops? Part 1: You...
C Programming- How would the whole part 1 be coded with multiple loops? Part 1: You can do A, B, and C in one program with multiple loops (not nested) or each one in a small program, it doesn’t matter. A. Create a loop that will output all the positive multiples of 9 that are less than 99. 9 18 27 36 45        …. B. Create a loop that will output all the positive numbers less than 200 that are...
Project Assignment Construct the Y_bus matrix of a given power network by computer programming, preferably MATLAB....
Project Assignment Construct the Y_bus matrix of a given power network by computer programming, preferably MATLAB. Note that the necessary data are available in the IEEE common data format; and as the working data, you can use the IEEE 14-bus system data. Due Date: December 26, 2019. IEEE-Format Data for 14-Bus System 08/19/93 UW ARCHIVE 100.0 1962 W IEEE 14 Bus Test Case BUS DATA FOLLOWS 14 ITEMS 1 Bus 1 HV 1 1 3 1.060 0.0 0.0 0.0 232.4...
Given the conversion factor that 7.3 kcals are required to produce 1 mole of ATP. How...
Given the conversion factor that 7.3 kcals are required to produce 1 mole of ATP. How many moles of ATP would be created in the human body with the metabolism of 1 mole of glucose? 32 686 94 73
1) what is the part of the accounting system that measures costs for the purposes of...
1) what is the part of the accounting system that measures costs for the purposes of management decision making and financtial reporting 2) what is one major factor causing changes in management accounting today?
part 1. An independent measures study has df = 48. How many total participants were in...
part 1. An independent measures study has df = 48. How many total participants were in the study? a. 24 b. 46 c. 50 d. There is not enough information part 2. A commonly cited standard for one-way length (duration) of school bus rides for elementary school children is 30 minutes. A local government office in a rural area conducts a study to determine if elementary schoolers in their district have a longer average one-way commute time. If they determine...
Java Part 2 of 4 - Amusement Park Programming Project MUST BE COMPATIBLE WITH PART 1...
Java Part 2 of 4 - Amusement Park Programming Project MUST BE COMPATIBLE WITH PART 1 https://www.chegg.com/homework-help/questions-and-answers/java-part-1-4-amusement-park-programming-project-requirements-use-java-selection-construct-q40170145?trackid=ERIFssNL Requirements: Use the Java selection constructs (if and if else). Use the Java iteration constructs (while, do, for). Use Boolean variables and expressions to control iterations. Proper error handling. Class: Merchandise – models merchandise available in the gift shop such as t-shirts, sweatshirts, and stuffed animals. Instance Fields: id : long – to identify the specific merchandise item. category : String – to...
Define beta, what it measures, how to interpret beta, and how beta is used as part...
Define beta, what it measures, how to interpret beta, and how beta is used as part of the capital asset pricing model. Discuss the advantages and disadvantages to using beta. Please show work
Exercise 3 Part 1. Solving a system Ax = b **Create a function in MATLAB that...
Exercise 3 Part 1. Solving a system Ax = b **Create a function in MATLAB that begins with: function [C,N]=solvesys(A) [~,n]=size(A); b=fix(10*rand(n,1)) format long We are using format long to display a number in exponent format with 15 digit mantissas. If later on, you will need to switch back to the default format, type and run format The input is an matrix A. If A is invertible, the outputs are the matrix C, whose 3 columns x1, x2, x3 are...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT