Download MATLAB BUILDER JA 2 User`s guide
Transcript
Contents Getting Started 1 What Is MATLAB Builder for Java? . . . . . . . . . . . . . . . . . . Support for MATLAB Features in Java . . . . . . . . . . . . . . . . Known Issue in Data Returned by toArray Referencing Sparse Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using the Deployment Tool . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 1-2 Creating a Java Component . . . . . . . . . . . . . . . . . . . . . . . . Using the Command-Line Interface . . . . . . . . . . . . . . . . . . . 1-5 1-6 Developing an Application ......................... 1-12 Deploying an Application .......................... 1-14 Example: Magic Square . . . . . . . . . . . . . . . . . . . . . . . . . . . . Magic Square Example: Step-by-Step Procedure . . . . . . . . 1-15 1-15 Understanding the Magic Square Example . . . . . . . . . . . Importing Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Creating an Instance of the Class . . . . . . . . . . . . . . . . . . . . Calling Class Methods from Java . . . . . . . . . . . . . . . . . . . . . 1-23 1-23 1-23 1-23 For More Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-25 1-2 1-3 Concepts 2 What Is a Project? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Classes and Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Naming Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3 2-3 2-3 iii