Search for question
Question

Create a new MATLAB script file named lab2. Type your name as a comment in the header of the file

and use MATLAB code to solve the following problems:

1. Write a user-defined MATLAB function, named my Unit Conv, with two input and two output

arguments that determines the height in centimeters (cm) and mass in kilograms (kg) of a

person from his height in inches (in.) and weight in pounds (lb).

2. Write a MATLAB function called myPlot that produces no inputs and takes as inputs x-data,

y-data, title, x-label, and y-label of a graph. The function should plot the data with a grid and

place all the labels appropriately on the graph.

Fig: 1