Calling C and Fortran Programs from MATLAB® Command Line


Although the MATLAB® product is a complete, self-contained environment for programming and manipulating data, it is often useful to interact with data and programs external to the MATLAB environment. MATLAB provides a C and Fortran API for programs written in these languages. You use the API functions in your programs and build them into binary MEX-files, which you call from the MATLAB command line.

Using MEX-Files to Call C and Fortran ProgramsUsing binary MEX-files, mx routines, and mex routines
MATLAB® DataData types you can use in source MEX-files
Building Binary MEX-FilesCompiling and linking your MEX-file
Custom Building Binary MEX-FilesPlatform-specific instructions on custom building
TroubleshootingTroubleshooting some of the more common problems you may encounter
Additional InformationFiles you should know about, example programs, where to get help
  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS