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...
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...
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...
Part 2: MATLAB Exercise 1 (50 pts) Write a program that tells the user if a...
Part 2: MATLAB Exercise 1 (50 pts) Write a program that tells the user if a city of their choice is in a tropical, temperate, or polar region. Use the cities.txt file provided in the Files section of this class. Your program should read the data in that file, find the city given by the user, and return a text message with the information. If the city is not found, your program should write a message accordingly. To decide which...
Submit your calculation/answer for Part 1 and MATLAB code/result/answer for Part 2 below: Servicing Customers A...
Submit your calculation/answer for Part 1 and MATLAB code/result/answer for Part 2 below: Servicing Customers A supermarket you work part-time at has one express lane open from 5 to 6 PM on weekdays (Monday through Friday). This time of the day is usually the busiest since people tend to stop on their way home from work to buy groceries. The number of items allowed in the express lane is limited to 10 so that the average time to process an...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT