MATLAB BUILDER JA 2 Podręcznik Użytkownika Strona 252

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 251
1 2 ... 247 248 249 250 251 252 253 254 255 256 257 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag