This web site contains course notes for a basic introduction to Matlab
Initially this page is really just a list of the topics I want to / have talk(ed) about, without any real coverage here of any particular topic.
for index = list
statements
end
switch switch_expression
case case_expression
statements
case case_expression
statements
:
otherwise
statements
end
Notes below this point are left over from previous semesters, and correspond to the other book. Material covered above is being deleted here.
data = ones( 2, 2 ); % Creates a 2 x 2 array of value 1
whos
x = data( 3, 3 ); % Error - element doesn't exist.
whos
data( 3, 3 ) = 42 % Sets the value and expands the array, filling with zeros.
whos