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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 232
Plot Example
plot(x,y);
This code is already in your work d irectory in
PlotExample\PlotDemoComp\drawplot.m.
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
plotdemo
Class name plotter
Show verbose
output
Selected
c. Add the computefft.m and plotfft.m M -files to the project.
d. Save the project.
5 Build the component.
6 W rite source code for an application that accesses the component.
The sample application for this example is in
matlabroot\toolbox\javabuilder\Examples\PlotExample
\PlotDemoJavaApp\createplot.java
.
The program graphs a simple parabola from the equation
5-3
Przeglądanie stron 232
1 2 ... 228 229 230 231 232 233 234 235 236 237 238 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag