MATLAB BUILDER JA 2 Guia do Utilizador Página 233

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 292
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 232
1 2 ... 228 229 230 231 232 233 234 235 236 237 238 ... 291 292

Comentários a estes Manuais

Sem comentários