===== Matlab and Circuits ===== This is a temporary page that contains notes and comments about topics that might be useful to us. ==== Books and Websites ==== [[http://www.seas.upenn.edu/~jan/matlab/Matlab.html]] [[http://www.ece.ubc.ca/~msucu/documents/matlab/circuits%20solutions%20with%20matlab.pdf]] * Simple circuit problems with example matlab code [[http://www.ee.hacettepe.edu.tr/~solen/Matlab/MatLab/Matlab%20-%20Electronics%20and%20Circuit%20Analysis%20using%20Matlab.pdf]] * This is a nice pdf book that contains tutorials on Matlab fundamenals, plotting, control statements,and then does matlab problem. * One option is simply to use this book for 240. The first week, they would read the first three chapters, as a homework problem. After that, work selected problems. * Question: I see plenty of worked problems, are there un-worked problems? [[http://booksite.elsevier.com/9780750659321/exercises/SpiceAndMatlab.pdf]] * Another pdf book that contains many worked examples in spice and matlab. Both Spice and Matlab examples are given. * Question: Are there un-worked problems. I don't see any on a first look. However, we could use the existing problems to motivate our own. ==== Matlab code snippet ==== Here is an example of including matlab code % simple script file that plots a sin wave t = [0:.01:10]; v = sin(t); plot(t,v)