If you are new to MATLAB programming, you could do worse than the tutorials at the Mathworks. In addition to the tutorials provided by Mathworks, you'll find links to tutorials written at several universities, and to some popular books.

All homework scripts should run in MATLAB. However, if you do most of your development work on a machine without MATLAB, you might want to look into Octave, a freely-available MATLAB-like system