Write a user-defined MATLAB fuction that converts the mass and height of a person from SI units (kg and cm) to weight and height in standard units (lb and in). For the fuction name and arguments use [in,lb]=STtoSI (cm,kg). The input arguments are the height in centimeters and mass in kg, and the output arguments are the height in inches and the weight pounds. Use the fuction in the command window to determine in standard units the height and mass of a 85 kg person who is 178cm tall.
Comments
Leave a comment