MATLAB(TM) Hypertext Reference, Copyright (c) 1995 Gerald Recktenwald, All rights reserved

Programming MATLAB

Soon after you become accustomed to using MATLAB interactively you will probably grow tired of typing the same sequences of commands in order to perform routine tasks. When this happens you will be ready to start programming in MATLAB.

MATLAB ``programs'' are sequences of MATLAB commands saved in plain text files. MATLAB requires that these files have the extension ``.m''. As a result MATLAB programs are often referred to as m-files.

There are two types of MATLAB programs. These are scripts and functions.

Scripts

MATLAB Functions -- Intermediate Features

MATLAB Functions -- Intermediate Features

Improving the Speed of MATLAB Calculations






[Preceding Section] [Master Outline] [Section Outline] [Next Section]