Answered step by step
Verified Expert Solution
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 need help coding task in matlab Task loadMAdata.mat'
DAYmenuSelect a day:stringDays;
LOCATIONmenuSelect a location:LocationID;
LocationCLocationIDLOCATION;
DayCDaysDAY;
ICEIceDAYLOCATION;
fprintfOn day d at location s the ice thickness is f m
DayC,LocationC,ICETASK : min
Five 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 userinputted
ice data value for the new location on the new day. Save the three updated variables as MATaskmat. 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started