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 DataAHWbig.mat use command load It contains two variables: data matrix Dand cell array varsstoring column names. The matrix Dcontains rows of boys and girls data: gender, age, height, weight columns in this exact order The gender column has for a girl and for a boy. The age is expressed in years, height in centimeters and weight in kilograms.
aPresent 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 axisxmin 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:
bDo the same kind of plot as in point abut in the same single figures using magenta asterisks for girls and blue circles for boys. Add the legend.
cSame as in Task create a column vector GirlsHwhich has values of respective means of
heights of girls of age or more but not yet
heights of girls of age or more but not yet
heights of girls of age or more but not yet
heights of girls of age or more but not yet
Then create analogical vectors GirlsWfor girls' weight, BoysHfor boys' height and BoysWfor boys' weights.
Note that the smartway is to do these using loops...
dUse the vectors created in point cto 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
