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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 247
5 Sample Applications (Java)
b. At the MATLAB command prompt, cd to the new MatrixMathExample
subdirectory in your w ork directory.
2 If you have not already done so, set the environment variables that are
required on a d ev elo pm ent machine. See “Settings for Environment
Variables (Development M achine)” on page 6-2.
3 Write the MATLAB functions as you would any MATLAB function.
Thecodeforthe
cholesky, ludecomp,andqrdecomp functions is already in
your work directory in
MatrixMathExample\MatrixMathDemoComp\.
4 While in MATLAB, issue the follow ing command to open the Deployment
Tool dialog box:
deploytool
5 Specify a Java component as follows :
Field Value
Component
name
factormatrix
Class name factor
Show verbose
output
Selected
6 Add the cholesky.m, ludecomp.m and qrdecomp.m M-files to the project.
7 Save the project.
8 Bu ild the component.
9 W rite source code for an application that accesses the component.
The sample application for this example is in
MatrixMathExample\MatrixMathDemoJavaApp\getfactor.java.
The program listing is shown here.
5-18
Przeglądanie stron 247
1 2 ... 243 244 245 246 247 248 249 250 251 252 253 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag