solution

Download the template mlx-file and the data csv-file:

Download YourName_A9_HW.mlx

Hurricane Data Plots
clear;
clc;
close all;

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.

5. Subplot
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.

AtlanticHurricanes20012020.csv

2001 9
2002 4
2003 7
2004 9
2005 15
2006 5
2007 6
2008 8
2009 3
2010 12
2011 7
2012 10
2013 2
2014 6
2015 4
2016 7
2017 10
2018 8
2019 6
2020 9

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 .

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Looking for a Similar Assignment? Our Experts can help. Use the coupon code SAVE30 to get your first order at 30% off!

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp