write a function that accepts temperature in degrees Fahrenh
write a function that accepts temperature in degrees Fahrenheit
Write a function that accepts temperature in degrees Fahrenheit (degree F) and computes the corresponding value in degrees Celsius (degree C). The relation between the two is T degree C = 5/9 (T degree F - 32) Be sure to test your function.Solution
Answer:
function [c] = temperature(x)
c = (x - 32) * 5/9;
The first two lines as i mentioned in answer in a new file
and save it as temp.m
then
you call it like this:
[c]=temperature(-41)
