SUNY Geneseo Department of Mathematics
Friday, April 29
Math 230 02
Spring 2016
Prof. Doug Baldwin
>> load database
>> 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]
>> % Example projection: project column 3 from mathContributions
>> % Expect 1 column of dates, as a cell array (since it's a smaller relation)
>> project( mathContributions, [3] )
ans =
[1666]
[1675]
[1931]
[1936]
[1930]
>> % Example selection: select all rows with "calculus" in
>> % column 2 from mathContributions
>> % Expect 1st 2 rows as new cell array
>> select( mathContributions, 'Calculus', 2 )
ans =
'Isaac Newton' 'Calculus' [1666]
'Gottfried Leibniz' 'Calculus' [1675]