EE32b: Matlab

You will use Matlab to run experiments and for solving some of the homework problems.

Getting started

    It is not difficult to learn how to use Matlab, do invest some time at the beginning of the class to familiarize yourself. First of all, make sure that you have a computer account from which you can run Matlab. An excellent way to start is to ask a friend to show you some code they wrote and to explain to you what it does. Another place where you may start is Kermit Simon's Matlab Primer of which you may download either a PS or a PDF version. You will find online versions as well.
 

1st week assignment

Familiarize yourself with the Matlab functions fft, conv and conv2, plot, sound. Try and understand how the output of fft is organized (run the command `help fft' to find out).
Try the following (this may not work on a Linux box):
> load chirp
> sound(y,Fs)
Now calculate the power spectrum of the signal y and plot it.  Plot the signal as well and look at it. Is it a lowpass signal or a bandpass signal?
 

Computing Fourier transforms in Matlab (Jan 13 2001)

 

 

Matlab code for diffusions demo  shown in class on Wed March 7