Home

   Teaching

   Research

  Introduction to MATLAB

Syllabus

Lecture Notes

Module 1-Basic matrix computation and addressing. Basic plots with labels.

Module 2-Script m-files and functions. Logical operators and control flow. Univariate optimization and zero finding.

Module 3-3-D plots. Random numbers, nonstandard distributions, histograms, and Monte Carlo simulation.

Code

Module 1-Solution to the OLS exercise.

Module 2-CES utility example. Solution to the matrix multiplication and profit maximization exercises.

Module 3-CES utility example with two goods. Monte Carlo example and solutions to two Monte Carlo exercises. Intertemporal utility maximization example.

Links

Matlab Official MathWorks product site. Documentation, tutorials, and more are available here.

Econometrics Toolbox from James LeSage

GMM Toolbox from Mike Cliff