Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!