MATLAB BUILDER JA 2 Guía de usuario Pagina 252

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 292
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 251
1 2 ... 247 248 249 250 251 252 253 254 255 256 257 ... 291 292

Comentarios a estos manuales

Sin comentarios