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...
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. 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 -16.9 0.0 1.060 0.0 0.0...
Part 1 How should performance measures be viewed from a supply chain perspective? Part 2 In...
Part 1 How should performance measures be viewed from a supply chain perspective? Part 2 In what ways is a balanced scorecard similar to the SCOR model? Different from the SCOR model? Use a resource if possible please!
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
PART B: Computing Fibonacci Numbers With Threads This programming project is based on a problem given...
PART B: Computing Fibonacci Numbers With Threads This programming project is based on a problem given in our textbook. The Fibonacci sequence is the series of numbers 0, 1, 1, 2, 3, 5, 8,.... Formally, it can be expressed as: fib0 = 0 fib1 = 1 fibn = fibn-1 + fibn-2 Write a multithreaded program that generates the Fibonacci series using the pThreads library. This program should work as follows: The user will enter on the command line the number...
Programming language to be used: Java Exercises Part 1) The Dog Class In the first part...
Programming language to be used: Java Exercises Part 1) The Dog Class In the first part of the lab, we are writing a class to represent a Dog. It should not have a main method. Dog needs fields for price (to purchase the dog), breed, name, and age. Use appropriate data types The class should have the following two kinds of Constructors: Constructor 1: Write a constructor that accepts a value for each of the fields Constructor 2: Write a...
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?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT