Question: (please solve it in a paper, not in Matlab)Write a function degf_to_k that will convert a temperature from degrees Fahrenheit (F) to Kelvin (K). It

(please solve it in a paper, not in Matlab)Write a function degf_to_k that will convert a temperature from degrees Fahrenheit (F) to Kelvin (K). It will receive one input argument which is degrees Fahrenheit, and it will return the temperature in K. Here are conversions from F to Celsius and from C to K:

C = (F 32) * 5/9

K = C + 273.15

Here are examples of calling this function:

>> ktemp = degf_to_k(33.3)

ktemp =

273.8722

>> fprintf('%.2f degrees F is %.2f degrees K ', -15.3, ...

degf_to_k(-15.3))

-15.30 degrees F is 246.87 degrees K

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!