SUNY Geneseo Department of Mathematics
Wednesday, December 9
Math 230 01
Fall 2015
Prof. Doug Baldwin
save( ’filename’ )
save( ’filename’, ’var1’,
’var2’, … )
save filename, var1, var2, …
load( ’filename’ )
loads variables into workspace>> msg = 'hello there!';
>> msg2 = 'more message';
>> save( 'messages' );
>> load( 'parrot.mat' );
>> y
y =
Polly wants a cracker
mathContributions
that have
“Calculus” in column 2 would yield a new cell array
containing copies of the first two rows of mathContributions
selection
doesn’t exist as a Matlab function
yet, you have to write it)>> 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]
>> selection( mathContributions, 'Calculus', 2 )
Undefined function or variable 'selection'.