MATLAB BUILDER JA 2 Guide de l'utilisateur Page 252

  • 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 251
5 Sample Applications (Java)
creates an instance of the class factor.
The following statements call the methods that encapsulate the MATLAB
functions:
result = theFactor.cholesky(1, a);
...
result = theFactor.ludecomp(2, a);
...
result = theFactor.qrdecomp(2, a);
...
10 Compile the getfactor application using javac.
cd to the matlabroot\work\factormatrix directory.
On Windows, execute the following command:
javac -classpath
.;
matlabroot\java\jar\toolbox\javabuilder.jar;
.\distrib\factormatrix.jar getfactor.java
On UNIX, execute the following command:
javac -classpath
.:
matlabroot/java/jar/toolbox/javabuilder.jar:
./distrib/factormatrix.jar getfactor.java
11 Run the application.
Run
getfactor using a nonsparse matrix
On Windows, execute the
getfactor classfileasfollows:
java -classpath
.;
matlabroot\java\jar\toolbox\javabuilder.jar;
.\distrib\factormatrix.jar
-Djava.library.path=
matlabroot\bin\win32;.\distrib
getfactor 4
5-22
Vue de la page 251
1 2 ... 247 248 249 250 251 252 253 254 255 256 257 ... 291 292

Commentaires sur ces manuels

Pas de commentaire