MATLAB Write a function that takes a conversion code and a n

MATLAB

Write a function that takes a conversion code and a number and converts the given number according to the following conversion rules. The first input to the function should be the number and the second input should be the conversion code as a string. Use if-elseif statements to solve this problem.

must be completed using these specifics, which is what is throwing me off.

Solution

x = input(\'Enter the number to be converted\');

z= 5/9*(x-32)

end

z= 3/2*x

end

z= 1.6*x

end

z= 0.45*x

end

MATLAB Write a function that takes a conversion code and a number and converts the given number according to the following conversion rules. The first input to

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site