In matlab We have two vectors containing the weight and height of a group of people. The vector H contains the measurement data of height (in meters) H=[1.92 1.58 1.69 2.10 1.96 1.81 1.59 1.91 1.61 1.71 1.68 1.54 1.93 2.14 1.83 1.71 1.82 1.88 1.74 1.65 1.59 1.60 1.66 1.78 1.81] the vector V contains the measurements of weight in kilograms V= [116.4 52.7 67.2 51.8 100.8 102 94.3 68.6 92.9 46.3 82.1 89.3 66.6 77.6 137.7 83.8 72.2 77.7 96.9 44.6 57.4 86.6 72.8 58.1 66.7] Use the controllstructures (loops and condition tests), do not use mean() or std() in Matlab. create a script to find the following. a) what is the average height b) what is the standard deviation of the height c) find the BMI (body mass index) for all the subjects, it's going to be a vector with values for all the subjects.
In matlab
We have two
H=[1.92 1.58 1.69 2.10 1.96 1.81 1.59 1.91 1.61 1.71 1.68 1.54 1.93 2.14 1.83 1.71 1.82 1.88 1.74 1.65 1.59 1.60 1.66 1.78 1.81]
the vector V contains the measurements of weight in kilograms
V= [116.4 52.7 67.2 51.8 100.8 102 94.3 68.6 92.9 46.3 82.1 89.3 66.6 77.6 137.7 83.8 72.2 77.7 96.9 44.6 57.4 86.6 72.8 58.1 66.7]
Use the controllstructures (loops and condition tests), do not use mean() or std() in Matlab. create a script to find the following.
a) what is the average height
b) what is the standard deviation of the height
c) find the BMI (body mass index) for all the subjects, it's going to be a vector with values for all the subjects.
d) how many have a normal weight BMI (under 18.5 and over 25)
Step by step
Solved in 2 steps