Question: Load the given data file Data _ AHW _ big.mat ( use command load ) . It contains two variables: data matrix D and cell

Load the given data file Data_AHW_big.mat (use command load). It contains two variables: data matrix Dand cell array varsstoring column names. The matrix Dcontains 237 rows of boys and girls data: gender, age, height, weight (columns in this exact order). The gender column has 1 for a girl and 2 for a boy. The age is expressed in years, height in centimeters and weight in kilograms.
a)Present scatter plots for girls' and boys' height versus weight. Label the plots accordingly. The two plots can be either two separate figures or two subplots in one figure. Set the axis limits of both graphs to the same (X axis having values from minimum to maximum of all kids' height and Y axis having values from minimum to maximum of all kids' weight). Axis limits can be set using command axis([xmin xmax ymin ymax]), where xmin, etc. have your chosen values.
The graphs should look like this (but you can use markers of any choice, not necessarily dots):
b)Do the same kind of plot as in point a)but in the same single figures using magenta asterisks for girls and blue circles for boys. Add the legend.
c)Same as in Task 2, create a column vector GirlsHwhich has 7 values of respective means of
heights of girls of age 11 or more but not yet 12
heights of girls of age 12 or more but not yet 13
...
heights of girls of age 16 or more but not yet 17
heights of girls of age 17 or more but not yet 18
Then create analogical vectors GirlsWfor girls' weight, BoysHfor boys' height and BoysWfor boys' weights.
Note that the smartway is to do these using loops...
d)Use the vectors created in point c)to plot girls' and boys' height versus age and girls' and boys' weight versus age. Use magenta line with circular markers for girls and blue line with square markers for boys. Set axis to tight limits. The plots can be either two separate figures or two subplots in one figure. Label the plots accordingly.
Answer in matlab code please.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!