Announcements

Additional reading

Quizzes

Quiz 1 Solutions
Quiz 2 Solutions
Quiz 3 Solutions

MATLAB examples

Examples from the lab:

symbolics_1.m A simple example using symbolic variables (defining, solving, simplifying, etc.)
symbolics_2.m An involved example using symbolics: solving, integrating, computing areas
symbolics_3.m An example using symbolics and computing the volume of the solid of revolution
numerics_example.m How one really SHOULD do all of the above in Matlab: using numerical tools
no_magic_example.m Magic demystified in this closer-to-the-metal example.
Do all of the above using basic syntax only - this transfers to other languages, too.
symbolics_are_bad.m The problem: find b s.t. average of f on [0, b] is 7. Solved in 2 ways (num. and sym.).
Watch the symbolic toolkit crash and burn here (and why you really should not use it for problems like this).

Cool examples:

mandelbrot.m Draws the Mandelbrot fractal
sierp.m Draws the Sierpinski triangle
sierp_better.m Draws the Sierpinski triangle in a better way
dragon.m Draws the Dragon curve
game_of_life.m Plays Conway's game of Life
cycloida.m Draws a nice cycloida curve
curveplot_anim.m Draws an animated curve in 3-dimensional space
anim_plot.m Draws an animated surface plot
a_3d_line_plot.m Draws a plot of a curve in 3-space
a_3d_surface_plot.m Draws a plot of a hyperbolic paraboloid
approximate_pi.m Approximates Pi with square roots

Other examples:

curvelength.m Plotting a parametric curve and numerically computing its length
step_size_importance.m Illustrates why picking a small step size is important

Useful Links