Q:

Clear out any variables that you have in your Command Window. Create a matrix variable and two vector variables

0

Clear out any variables that you have in your Command Window. 

Create a matrix variable and two vector variables.

 Make sure that you have your Current Folder set.

 Store all variables to a MAT-file

 Store just the two vector variables in a different MAT-file

 Verify the contents of your files using who.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

>> mat = [2:4; 6:-1:4];

>> vec1 = 1:5;

>> vec2 = 4:12;

>> save matfile1

>> save matfile2 vec1 vec2

>> clear

>> load matfile1

>> who

Your variables are:

mat vec1 vec2 

>> clear

>> load matfile2

>> who

Your variables are:

vec1 vec2 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now