| Contents | Index |
| On this page… |
|---|
In this section, you will step through an example of how a simple MATLAB function can be transformed into a deployable MATLAB Builder JA component.
The Magic Square example shows you how to create a Java component named magicsquare which contains the magic class, a .jar file, and other files needed to deploy your application.
The class wraps a MATLAB function, makesqr, which computes a magic square.
Note The examples here use the Windows deploytool GUI, a graphical front-end interface to MATLAB Compiler software. For information about how to perform these tasks using the command-line interface to MATLAB Compiler software, see the mcc reference page. |
A magic square is simply a square array of integers arranged so that their sum is the same when added vertically, horizontally, or diagonally.
See Copying the Example Files for information on accessing the example code from within the product.
Watch a video about deploying applications using MATLAB Builder JA.
![]() | Quick Start: Deploying a Component with the Hello World Example | Magic Square Example: MATLAB Programmer Tasks | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |