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)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)