Write a function to convert c to fin degrees test the


The part of this I can't complete is converting the input string of the temperature to a numeric value that can be used by the tF method. This is the work I have so far.

function [tF] = convertC(tC)

calctC = input('Enter Temperature ', 's');

convert = datenum(calctC,'s');

age = datestr(now-convert ,'s');

tC = age(end, end);

switch nargin

case 0

error('No initial temperature defined')

end

tF = ((9/5*tC)) + 32;

fprintf('%2.2f degrees F/n');

end

Write a function to convert C to Fin degrees. Test the function for 0C, 100C. Include an error message into function if a temperature is not inputted.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a function to convert c to fin degrees test the
Reference No:- TGS02885112

Expected delivery within 24 Hours