Complete the code to save variable x to a MAT file named 'data.mat'.
x = 10; save('[1]', 'x');
The save function saves variables to a MAT file. The filename must end with .mat.
Complete the code to load the variable x from the MAT file 'data.mat'.
load('[1]', 'x');
The load function loads variables from a MAT file. You must specify the correct MAT filename.
Fix the error in the code to save variables a and b to 'myfile.mat'.
a = 5; b = 7; save('myfile.mat', [1]);
To save multiple variables, list them as separate strings in the save function.
Fill both blanks to save variable y and load it back from 'file.mat'.
y = [1, 2, 3]; save('[1]', 'y'); clear y load('[2]', 'y');
Use the same filename to save and load the variable y.
Fill all three blanks to save variable z, clear it, and then load it back from 'test.mat'.
z = magic(3); save('[1]', '[2]'); clear [3]; load('test.mat', 'z');
Save to 'test.mat', save variable 'z', clear variable 'z' before loading it back.