100 Handouts and m-files
Getting Started in MATLAB (pdf)
(some very basic info to get you off the ground)
Crash course in MATLAB (Version 7) (pdf)
(by Toby Driscoll)
A Practical Introduction to Matlab (Version 5) (html version)
(by Mark Gockenbach) or
Postscript version
For more introductory material and tutorials see
my MATH 100 main page
, or
the main course page
fibonacci.m
(the function we created in our first class)
Introductory Matlab scripts
basic_definitions.m
(script that calls all other files. Note, however, that each file below can also be executed separately.)
matrix_vector.m
(definition of matrices and vectors)
arithmetic.m
(simple arithmetic with matrices and vectors)
lin_sys.m
(solving linear systems)
submatrices.m
(definition of submatrices)
statistics.m
(timing in Matlab)
loops1.m
(for-loops, and why to avoid them)
loops2.m
(more on for-loops)
plotting.m
(simple plotting)
efficiency.m
(some tricks for efficient coding)
user_defined_functions.m
(how to use user-defined functions)
circle.m
(a user-defined function)
inline_functions.m
(how to use inline functions)
anonymous_functions.m
(how to use anonymous functions)
function_functions.m
(how to use anonymous functions)
basics.zip
(.zip file containing all of the files above)
Quadractic form m-files
quadform1.m
M-files for cryptography example (from the Moler book)
CryptoDemo.m
crypto.m
M-files for fractal examples (mostly from the Moler book)
barnsley.m
gasket.m
fern.m
Some of the other programs I showed you can be found at the
Matlab File Exchange
.
Last updated: August 26, 2008
Greg Fasshauer
(fasshauer at iit.edu)