Skip to Main Content Skip to Search
Product Documentation

The Magic Square Example

About This Example

The example in this chapter shows you how to transform the MATLAB function magic into a deployable standalone application or shared library component.

The steps in this example vary, depending on if you want to deploy your MATLAB code as a standalone or as a shared library. If you are unsure about which target to select for your deployment, see When to Create a Standalone Application and When to Create a Shared Library

What Is a Magic Square?

A magic square is simply a square array of integers arranged so that their sum is the same when added vertically, horizontally, or diagonally.

How Do I Access the Examples?

The examples for MATLAB Compiler are in matlabroot\extern\examples\compiler. For matlabroot, substitute the MATLAB root folder on your system. Type matlabroot to see this folder name.

Watch a Video

Watch a video about deploying applications using MATLAB Compiler.

For More Information

If you want to...See...
Write MATLAB code that can be easily deployedMATLAB Code Deployment
See more examples of creating standalones and shared librariesC and C++ Standalone Executable and Shared Library Creation
See more examples of how to integrate your shared libraries into larger scale enterprise C and C++ applicationsDeployment Process
Learn more about the MATLAB Compiler Runtime and MCR InstallerThe MCR Installer
Installing MATLAB Compiler and running mbuildInstallation and Configuration
Deploying standalones and shared libraries on Mac® or LinuxUsing MATLAB Compiler on Mac or Linux

  


Free MATLAB Compiler Interactive Kit

Learn how to build standalone executables and C/C++ shared libraries from MATLAB code.


Get free kit

Trials Available

Try the latest version of MATLAB Compiler.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS