Skip to Main Content Skip to Search
Product Documentation

The Magic Square Example

About This Example

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.

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?

See Copying the Example Files for information on accessing the example code from within the product.

Watch a Video

Watch a video about deploying applications using MATLAB Builder JA.

  


Recommended Products

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