Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is done in Matlab h. How many days was the temperature anomaly in 2018 greater than the temperature anomaly on the corresponding date in

image text in transcribedimage text in transcribed

This is done in Matlab

h. How many days was the temperature anomaly in 2018 greater than the temperature anomaly on the corresponding date in 1978? i. HYPOTHETICAL SCENARIO 01: Some errors occurred during data collection for 1949,50 that some of the elements of column 4 of the matrix do not contain valid numerical values. Instead, the value of those elements is NaN - which means, "not a number". Using the function anan.), replace all of the NaNs with Os. To verify that this worked, calculate sum Cisnan (tome data), 'all'), which should evaluate to 0. HINT: applying isnan.to an array works as in the following example: > isnan (1 2 3 NaN 4 79 NaN 12 18 NaN 4-31) 1x13 logical array 0001000100100 HYPOTHETICAL SCENARIO #2: Suppose a systematic error was discovered in the data collection method, such that the temperature anomaly was overestimated by 0.1 in the month of March for the year 2010. Create a new matrix identical to the first, except that the 4 column is corrected by subtracting 0.1 from all of the March 2010 data. To verify that this worked correctly, calculate the sum of the temperature anomalies for March 2010 before and after making the correction. The difference should be 3.1. Designed to test skils: operators (logical relational, arithmetic, etc... operands (binary, numeric, scolars and/or arrays) binary arrays with functions (e... mean, sum, find and binary arrays with other arrays (extraction, multiplication, etc.) Note: For this homework you are not allowed to use loop structures 1. The provided data file contains daily average global temperature from 1800 through 2018. The data are organised as follows Column 1 3 Year (1830-2018 Month (1-12) Day of month(1-31) Temp anomalyc *Temperature anomaly just means the difference between the actual temperature and a specified reference level for each day of the year. Load in the data file using the command lond teep_date.at This will create a matrix called temp_dats in the workspace. Use logical array operations, built in functions, and array indexing in your script to answer the following questions about the data

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions