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.

  1. Simple Matlab Example

  2. More Detailed Matlab Example

  3. chop.m rounds a number to a user-specified number of decimal digits.

  4. Solve a quadratic equation in a way that avoids large cancellation error.

  5. Ill conditioning --- a Matlab example.

  6. Project Test Function --- a Matlab encoding of the test function used in the course project.

  7. Symbolic Differentiation in Matlab.

  8. Steepest Descent Sample Implementation

  9. Sample data function samplef.m

  10. Linear Programming Sample Problem and Matlab Solution
EE 103 Home Page