MATLAB BUILDER JA 2 Guia do Utilizador Página 252

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 292
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 251
1 2 ... 247 248 249 250 251 252 253 254 255 256 257 ... 291 292

Comentários a estes Manuais

Sem comentários