Download the template mlx-file and the data csv-file:
Hurricane Data Plots
Download the data file AtlanticHurricanes20012020.csv, read in Matlab,
and assign to the array hurrData:
hurrData = readmatrix(‘AtlanticHurricanes20012020.csv’);
1. Display the array hurrData using the disp function
Give each column a heading, e.g., Year No. of Hurricanes
2. Histogram plot
Create a histogram plot showing the number of Hurricanes per year. Label the x-axis Number of Hurricanes/year. Label the y-axis Frequency. Title the plot Hurricane Frequency Distribution 2001-2020. Save the figure as an emf file
3. Bar Plot
Create a bar plot showing annual hurricaines occurence Set the x = to the year; y = number of hurricanes. Label the x-axis Year. Label the y-axis Number of Hurricanes. Title the plot Annual Hurricane Occurrence 2001-2020. Save the figure as an emf file.
4. Line plot
Create a line plot showing annual hurricaines occurence. Set the x = to the year; y = number of hurricanes. The curve should be a red line with square symbols. Label the x-axis Year Label the y-axis. Number of Hurricanes. Title the plot Annual Hurricane Occurrence 2001-2020. Save the figure as an emf file.
Plot the histogram, the bar chart and the line plot as three separate charts on the same figure using the subplot function so that the histogram is first, the bar chart is next and is below the histogram and the line plot is at the bottom. Label and title each subplot. Save the figure as an emf file.
Place both files in the same folder. Follow the instructions in the template and complete the script. Submit your script with name “YourLastName_A9_HW.mlx”via Canvas .