MATLAB for Math 30530
Nancy K. Stanton
Introductory resources for MATLAB
-
A Guide to MATLAB for beginners and experienced users, 2nd edition
by Hunt, Lipsman and Rosenberg
is
on the reference shelf in the Mathematics Library (basement of Hayes-Healy)
and also available electronically through the library
Demonstrations
Following Peter Doyle's first rule of programming (see the link below
for his code), I started with his programs as models and modified them.
-
Game of Heads or Tails
-
Peter's cummulative winnings (or losses)
htsim.m
-
Bar graph of Peter's winnings (or losses) when he plays the game many times
htsim2.m
Code for homework
Additional code