Lecture (LM6) Matlab 6 -- User Defined Functions
- Due Nov 5, 2014 by 11:59pm
- Points None
The next 3 lectures will help you learn how to use Matlab more like a classic computer program. Today we will learn about User-Defined functions, which make it easy to use calculations over and over again. An example of a function that would be really useful in this class is calculation of resistors in series (one function) and parallel (another function), so that you can easily calculate resistor networks . Another example might be all of the various common op amp circuits.
Watch this Video Before Class:
Matlab - Chapter 6a Links to an external site. - Function M-files - 16:04 min
Power Point Links to an external site. to take notes on
Other Resource information:
http://www.ece.utah.edu/~ece1250/ECE1250_MATLAB_AdvIndex.pdf Links to an external site.Notes on indexing arrays
MATLABfuncs.pdf Download MATLABfuncs.pdf Diagram of passing arguments to functions
MATLABfuncs.pptx
Download MATLABfuncs.pptx Powerpoint showing sequence of events in passing arguments to functions
Matlab - Chapter 6b
Links to an external site.- Anonymous Functions and Subfunctions - 13:54 min
Matlab - Chapter 6 - Homework Example
Links to an external site. - 1:46 min