Diagnose an overwritten dataset

Before the commands below run, climate.mat contains exactly two variables: temperature_C = [18 20 22] in degrees Celsius and time_s = [0 5 10] in seconds. The workspace contains temperature_C = [24 26 28] and has no variable named time_s. The name S is unused.


MATLAB
save("climate.mat","temperature_C")
S = load("climate.mat");


Both commands succeed. Which statements about the result or the proposed change are correct? Select all that apply.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Using Script Files and Managing Data Questions: