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
Komentarze do niniejszej Instrukcji