Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is my task 1 need help coding task 2 in matlab Task 1 load ( ' MA 2 _ data.mat' ) DAY = menu

This is my task 1 need help coding task 2 in matlab Task1 load('MA2_data.mat')
DAY=menu('Select a day:',string(Days));
LOCATION=menu('Select a location:',LocationID);
LocationC=LocationID(LOCATION);
DayC=Days(DAY);
ICE=Ice(DAY,LOCATION);
fprintf('On day %d, at location %s, the ice thickness is %0.3f [m].
',DayC,LocationC,ICE)TASK 2: (2535 min)
Five(5) days after the last day of previously recorded data, your field team collects additional data. Prompt the user to enter
the ice thickness data for this day for all locations. Update the Days vector with the new day and the Ice matrix with the
newly recorded data. Additionally, on this day a new location was found and recorded. Prompt the user to enter the new
location ID and the ice data for the new location on this day. Since your field team does not have past data for the ice
thickness at the new location, you assume that the ice thickness at the new location is the average of the other locations ice
thickness for each day previously recorded. Update the LocationID string array with the new location, and the Ice matrix
with the newly recorded data. Add a new column to the end of the Ice matrix corresponding to the new location and fill in
this column of the Ice matrix with the average ice thickness for each of the previously recorded days and the user-inputted
ice data value for the new location on the new day. Save the three updated variables as MA2_Task2.mat. On the command
window, output the new location ID and the average ice thickness of the new day

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions