Can someone help me with my code? with an example
49 views (last 30 days)
Can someone show me an example of a function that receives a temperature in degrees Fahrenheit ( F ) as input argument, and returns the temperature in both degrees Celsius ( C ) and degrees Kelvin ( K ), in this order.
Im so stuck on this last question
Jos (10584) on 27 Apr 2014
Write a function like this
function CK = convertFahrenheit (F)
% CONVERTFAHRENHEIT - converts temperature
% CK = CONVERTFAHRENHEIT (F) concerts the temperature value(s) F, measured in Fahrenheit to
% the corresponding temperatures in degrees Celsius (first column of CK) and
% Kelvin (second column of CK).
CK(1,:) = … F(:)-32 ... ; % conversion to degrees Celsius
CK(2,:) = CK(1,:) - 273.13 % conversion to Kelvin