Thunderstorm Summary Matlab Solution

Thunderstorm Summary
The figure below shows the location of all recorded thunderstorms taking place in the continental United States in 2013, broken up by the NOAA climate regions and recorded total damage (to both property and crops).
You can analyze this data using some summary statistics functions in MATLAB. The individual statistics by themselves are insightful, but they become even more so when you view them together. You will use the groupsummary function to do this with the table:
  • stormData - Thunderstorm event data for the continental United States in 2013.
A preview of some of the first rows of the 14336 x 13 table stormData is shown below.
Note that the data includes NaN entries. The groupsummary function will automatically take care of omitting NaN values for you when necessary.
  1. Use the groupsummary function to create a table showing the minimum, median, mean, and maximum total cost by region. Assign this table to the variable summaryRegionCosts.
  2. Use logical indexing to extract out the subset of stormData with positive total cost ( i.e. stormData.Total_Cost > 0 ) as stormDataPos.
  3. Now use the groupsummary function to create a table showing the minimum, median, mean, and maximum total cost by region, but for only the subset of data with total cost greater than zero. Assign this table to the variable summaryRegionPosCosts.

Respuestas (1)

Walter Roberson
Walter Roberson el 25 de Nov. de 2022

0 votos

The figure below shows
That is not a question.
You can analyze this data
That is not a question.
You will use the groupsummary function
That is not a question.
Note that the data includes NaN entries
That is not a question.
Use the groupsummary function to create a table
That is not a question, that is a command.
Use logical indexing to extract out
That is not a question, that is a command.
Now use the groupsummary function
That is not a question, that is a command.
You did not ask even one question about MATLAB.
MATLAB Answers is not a homework service. You need to ask a specific question about MATLAB or related products.

La pregunta está cerrada.

Preguntada:

el 25 de Nov. de 2022

Cerrada:

el 25 de Nov. de 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by