Winter 2006 UCLA EE 103 Examples
To allow you to view the m-files in your browser window,
I have renamed the m-files with a .txt suffix.
To run them in Matlab, save them and rename them with a .m suffix.
For example, save the file samplef_m.txt to a file named samplef.m.
- Simple Matlab Example
- More Detailed Matlab Example
- chop.m rounds a number to a
user-specified number of decimal digits.
- Solve a quadratic equation in
a way that avoids large cancellation error.
- Ill conditioning --- a Matlab example.
- Project Test Function
--- a Matlab encoding of the test function used in the course project.
- Symbolic Differentiation in Matlab.
- Steepest Descent Sample Implementation
- Sample data function samplef.m
- Linear Programming Sample Problem and Matlab
Solution
EE 103 Home Page