SUNY Geneseo Department of Mathematics
Wednesday, December 2
Math 230 01
Fall 2015
Prof. Doug Baldwin
>> load( 'database.mat' );
>> 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]
>> institutions
institutions =
'Albert Einstein' 'Institute for Ad...' [1933] [1955]
'Albert Einstein' 'Humboldt University' [1914] [1932]
'Isaac Newton' 'Trinity College/...' [1667] [1701]
'John von Neumann' 'Institute for Ad...' [1933] [1957]
>> M = [ 'Isaac Newton', 1667 ]
M =
Isaac Newton¿
>> C = { 'Isaac Newton', 1667 }
C =
'Isaac Newton' [1667]
>> C{1} % content indexing
ans =
Isaac Newton
>> C(1) % cell indexing
ans =
'Isaac Newton'
>> C(2)
ans =
[1667]
>> C{2}
ans =
1667
% Cell arrays generally support the same kinds of indexing and concatenation
% operations regular matrices do
>> C2 = { 'abc', 1; 'def', 7 }
C2 =
'abc' [1]
'def' [7]
>> C2(:,2)
ans =
[1]
[7]
>> C2 = [ C2; {'abcd', 17} ]
C2 =
'abc' [ 1]
'def' [ 7]
'abcd' [17]