|Assigned: 08/25/11||Due: 08/30/11|
demoand then clicking on `Graphics'' and then ``Fourier series expansion''. Pay attention to the text that is generated in the window. This text shows the MATLAB commands that were used to generate the examples. You may also wish to explore some of the other examples by clicking on different buttons.
introto get an idea of the basic capabilities of MATLAB.
docat any time to get a hypertext version of the MATLAB Reference Guide or
help <cmd>to get help on specific commands (assuming this is installed on the machine where you are).
MATLAB for DSPare very useful for this class as well.
Do the following in MATLAB:
trials = 100; flip = rand(trials,1); heads = (flip >= 0.5); percentheads = sum(heads)/trialsWhat is the relative frequency of heads?
NOTE: All out-of-class work is to be done independently. Sharing of programming tips and discussing general concepts is ok. Collaborating on experiments or code-writing is not. Any such collaboration on these assignments will be considered an act of academic dishonesty and will be treated accordingly.