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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 239
5 Sample Applications (Java)
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 W rite the M-code that you want to access.
This example uses
computefft.m and plotfft.m, which are already in
your work directory in
SpectraExample\SpectraDemoComp.
4 Specify a Java component as follows :
a. While in MATLAB, issue the following command to open the
Deployment Tool dialog box:
deploytool
b. Create a new project with t he se settings:
Field Value
Component
name
spectralanalysis
Class name fourier
Show verbose
output
Selected
c. Add the plotfft.m M-file to the project.
Note In this example, the application that uses the fourier class
does not need to call
computefft directly. T he computefft method
is required only by the
plotfft method. Thus, when creating the
component, yo u do not need to add the
computefft function, although
doingsodoesnoharm.
d. Save the project. Make n ote of the project directory because y ou w ill
refer to it later when you build the program that w ill use it.
5 Build the component.
5-10
Przeglądanie stron 239
1 2 ... 235 236 237 238 239 240 241 242 243 244 245 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag