Asee peer logo

The Matlab Compiler Suite: M Files To C/C++ Executable Programs

Download Paper |

Conference

2002 Annual Conference

Location

Montreal, Canada

Publication Date

June 16, 2002

Start Date

June 16, 2002

End Date

June 19, 2002

ISSN

2153-5965

Conference Session

Computers in Education Poster Session

Page Count

8

Page Numbers

7.1164.1 - 7.1164.8

DOI

10.18260/1-2--10915

Permanent URL

https://strategy.asee.org/10915

Download Count

3618

Request a correction

Paper Authors

author page

Roger Lee

author page

Rafic Bachnak

Download Paper |

Abstract
NOTE: The first page of text has been automatically extracted and included below in lieu of an abstract

Main Menu

Session 1520

The MATLAB Compiler Suite: M-Files to C/C++ Executable Programs

Ray Bachnak Roger Lee Texas A&M University-Corpus Christi Naval Air Systems Command

Abstract

MATLAB has been recognized as the premier program for numerical computations and data visualization. Due to the fact that MATLAB is an interpreted language, M-files execute slower than compiled programs written in other languages. Furthermore, M- files require the presence of MATLAB to run. Recently, The MathWorks introduced a set of tools to automatically convert M-files into C/C++ source code, which can then be compiled to produce stand-alone executable code. This paper discusses the features of the Compiler, describes the conversion process, and presents test results that compare execution times of M-files and C/C++ executable applications.

Introduction

MATLAB is a powerful language that simplifies the process of solving technical problems in a variety of disciplines by including a very extensive library of predefined functions. It also offers many special-purpose toolboxes that address specific areas, such as signal processing and neural networks, and provides Graphical User Interface (GUI) tools that make it suitable for application development. Because of these capabilities, MATLAB has been recognized as the premier program for numerical computations and data visualization and has been used by the educational, industrial, and government communities all over the world.

Due to the fact that MATLAB is an interpreted language, MATLAB files (M-files) execute slower than compiled programs written in other languages, such as C, C++, and Fortran. In addition, M-files require the presence of MATLAB to run. To address these weaknesses, The MathWorks recently introduced a set of tools that automatically convert M-files into C/C++ source code, which can then be compiled to produce C/C++ executable programs that can run even if MATLAB is not installed on the system. These C/C++ executable programs are referred to as stand-alone applications. The tools required for generating stand-alone applications are: MATLAB, the MATLAB Compiler, the MATLAB C/C++ Math Library, and a C/C++ compiler. The MATLAB C/C++ Graphics Library is also required in order to create applications that make use of Handle Graphics ® functions. This paper describes the important features of the Compiler and its associated tools, states the benefits of converting M-files to stand-alone

Proceedings of the 2002 American Society for Engineering Education Annual Conference & Exposition Copyright Ó 2002, American Society for Engineering Education

Main Menu

Lee, R., & Bachnak, R. (2002, June), The Matlab Compiler Suite: M Files To C/C++ Executable Programs Paper presented at 2002 Annual Conference, Montreal, Canada. 10.18260/1-2--10915

ASEE holds the copyright on this document. It may be read by the public free of charge. Authors may archive their work on personal websites or in institutional repositories with the following citation: © 2002 American Society for Engineering Education. Other scholars may excerpt or quote from these materials with the same citation. When excerpting or quoting from Conference Proceedings, authors should, in addition to noting the ASEE copyright, list all the original authors and their institutions and name the host city of the conference. - Last updated April 1, 2015