University of Southern California

ITS Information Technology Services

A division of the Office of the Chief Information Officer

Advanced MATLAB Commands and Functions

Other Useful Functions and Commands

Listed below are a few of the many MATLAB commands/functions. Use the help command for more detailed information on the commands and functions.

External Interface

MATLAB interacts with data and program external to it. It provides an Application Program Interface (API) to support these external interfaces. The functions supported by API include:

MEX-files

These are dynamically linked subroutines provided from C or Fortran source code. While they behave just like M-files and other builtin functions, Mex-files are not platform independent and they have to have a platform- specific extensions.

C and Fortran MEX-files

The include (header files) are located at: /usr/usc/matlab/default/extern/include. Some examples of MEX-files are located at: /usr/usc/matlab/default/extern/examples/mex

Compiling and linking

To compile and link the source files written in C, at the MATLAB prompt, type the command mex. This will create a mexsol file, which will behave exactly like an M-file in MATLAB. You can also combine several object and use libraries while building MEX-file. The full path name for the mex function is: /usr/usc/matlab/default/bin/mex.

Important header files and libraries

Notes:

Basic Plotting and Graphic Functions

3-D Graphics

Getting Help With MATLAB

To get general MATLAB help, type help at the MATLAB command prompt to get a list of a help topics. To get help on a specific topic or function, type help at the prompt, replacing with the topic or function you wish to get help on.

MathWorks provides extensive MATLAB documentation online. To access this documentation, go to MATLAB Getting Started

If you have questions regarding this documentation, or are having trouble logging into your account and sourcing the MATLAB setup files, please contact the Customer Support Center at 213-740-5555 or email consult@usc.edu.

Last updated:
February 07, 2011

MATLAB

The use of all USC computing resources is governed by the USC Computing Policies.