SUNY Geneseo Department of Mathematics
Friday, April 24
Math 230 02
Spring 2015
Prof. Doug Baldwin
load filename variable(s)
load( 'filename.mat' )
save -append filename variable(s)
save( 'filename.mat' , 'varname1', 'varname2', ... )
who
command to see what’s in a filewho -file filename
>> x = 123;
>> y = 'hello';
>> who
Your variables are:
x y
>> who -file database
Your variables are:
csContributions mathContributions
institutions physicsContributions
>> csContributions
{Undefined function or variable 'csContributions'.}
>> load database
>> csContributions
csContributions =
'Alan Turing' 'Computability' [1936]
'Grace Hopper' 'COBOL' [1959]
'John von Neumann' 'Stored-Program C...' [1945]
>> save newfile x y
>> who -file newfile
Your variables are:
x y
>> mathContributions
mathContributions =
'Isaac Newton' 'Calculus' [1666]
'Gottfried Leibniz' 'Calculus' [1675]
'Kurt Goedel' 'Incompleteness' [1931]
'Alan Turing' 'Computability' [1936]
'John von Neumann' 'von Neumann Algebra' [1930]