CENG 2005
Introduction to Programming with MATLAB

Course Outline

These web pages provide a reference source to complement the CAPE lectures - "An Introduction to Numeric Computer Programming using MATLAB". Links are provided for each of the major headings and for relevant exercises. You should do the exercises before attempting the course work.

For your own computers

For those of you that may have a computer at home or elsewhere, there is a system, known as Octave, written by John W. Eaton (Department of Chemical Engineering, University of Wisconsin) and others, which is similar to Matlab. For the material covered in this course, Octave is a perfect replacement for Matlab.

Exercises

The following are a set of exercises which you should attempt, in order, to gain experience with the different aspects of Matlab. If you are able to do all these exercises, the hand-in project should pose little difficulty!

  1. PC Lab Introduction
  2. Estimating distance to horizon.
  3. Working with Arrays
  4. Simple Flow-sheet Example.
  5. Program loop exercise.
  6. Sine function approximation
© 2000
Written by J I Marriott & E S Fraga