How to Make Executables With MATLAB

How to Make Executables With MATLAB thumbnail
Making executables with MATLAB is relatively easy.

MATLAB is a language that allows you to run computation-intensive tasks faster than with other programming languages, such as Fortran. Furthermore, MATLAB provides everything a traditional programming language provides. It supports object-oriented programming, data structures and data types. And, just like traditional programming languages, MATLAB can create executable files. You just need to install a plug-in and configure the software to use it.

Things You'll Need

  • C compiler
Show More

Instructions

    • 1

      Open your favorite Web browser and visit MATLAB's official website. Download the MATLAB compiler and save it anywhere on your hard disk drive.

    • 2

      Double-click the setup file to start the installation. Follow the simple on-screen instructions to finish the installation.

    • 3

      Start MATLAB and run the "mbuild -setup" command to start searching for comparable compilers. Select the C compiler from the resulting list.

    • 4

      Create a new folder on your hard disk. Copy your MATLAB file (.m) to this new work folder. Point MATLAB to the new work directory.

    • 5

      Run the "mcc -m -v example_program.m" command in MATLAB. Replace "example_program" with your program's name. "mcc" triggers the MATLAB compiler, "-m" instructs it to create a standalone application and "-v" sets the type to verbose.

    • 6

      Wait for the compiler to finish creating the executable file. You will find it in the work folder and will have the same name as the source file.

Related Searches:

References

Resources

  • Photo Credit Jupiterimages/Pixland/Getty Images

Comments

Related Ads

Featured