MATLAB
MATLAB Examples


MATLAB is an interactive programming environment, and a language used in that interaction, and in scripts and M-files.

This directory contains some simple examples of MATLAB scripts.

Related Data and Programs:

F90_MATLAB contains examples in which a FORTRAN90 program issues a call to MATLAB to carry out an auxillary calculation.

MATLAB_BATCH contains examples in which MATLAB is used in "batch mode", that is, noninteractively.

MATLAB_C contains examples in which MATLAB can call a C function, using the MEX facility.

MATLAB_F77 contains examples in which MATLAB can call a FORTRAN77 function, using the MEX facility.

MATLAB_MOVIES contains examples in which MATLAB is used to generate animations.

MATLAB_OS contains examples in which MATLAB can invoke an operating system command.

Source Code:

CPU_TIMING shows how you can measure the CPU time required for a given computation.

HELLO is a simple example to print out "Hello, world!".

STARTUP.M is a MATLAB script that can be used to initialize MATLAB. You have to know where to put it, though. (Hint: start MATLAB, and type "pwd" to find out where MATLAB starts by default. That's where you want to put this file.)

You can go up one level to the MATLAB source codes.


Last revised on 14 March 2008.