MATLAB BUILDER JA 2 Guide de l'utilisateur Page 28

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 292
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 27
1 Getting Started
MATLAB function, nargout, in the method being called. The second input
argument is the input specified in the function declaration statement of
the
makesqr M-file.
Note The previous calling syntax is not the only way that you can call the
makesqr method. When Java B uilder encapsulates makesqr.m,itoverloads
the function, creating several signatures by which you can call the
makesqr
method. This lets you specify optional arguments when calling from Java.
See “Understanding Function Signatures Generated by Java Builder” on
page 2-6 for more details.
Note that the program uses a try-catch block to catch and handle any
exceptions.
9 Compile the application.
Compile the
getmagic application using the javac -classpath command
at the DOS or UNIX command prompt.
The compile yields a
getmagic.class file.
Note For matlabroot substitute the MATLAB root directory on your
system. Type
matlabroot to see this d irectory name.
a. On Windows, execute the fo llo wing command:
javac -classpath
.;
matlabroot\toolbox\javabuilder\jar\javabuilder.jar;
.\distrib\magicsquare.jar getmagic.java
Note If you created the component using mcc, Java Builder does not
create a
\distrib directory to contain the .java file.
1-20
Vue de la page 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 291 292

Commentaires sur ces manuels

Pas de commentaire