Programming Homework Help

Hertzsprung Russell Diagram

 

1. Write a line (or lines) that could be added to the script to modify the axis so the horizontal axis is from −0.5 to 2.25 and the vertical axis is from −10 to 20.

Hint: help axis, help xlim, help ylim.

2. Write a line (or lines) that could be added to the script to add reasonable labels to the horizontal and vertical axes, and a titl.
Hint: help xlabel, help ylabel, help title.

3. Write a line (or lines) that could be added to the script to create an n × 3 matrix named COL of colors to try and match the colors of stars indicated by the below diagram

4. Write a line (or lines) that could be added to the script to deletes all rows from the matrix NUM that have a value in the third column less than 2.25. Does this produce a different figure than just changing the axis to exclude these points? Explain.