Question: TASK 2 : ( 2 5 3 5 min ) Five ( 5 ) days after the last day of previously recorded data, your field
TASK : 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.
NOTE avoid hardcoding: Your code should produce different results if the data in Ice changes or if the size of Ice changes rows or columns The final lengths of LocationID or Days should change if their starting lengths change Need in matlab code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
