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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 23
1 Getting Started
matlabroot\toolbox\javabuilder\Examples\MagicSquareExample
This procedure assumes that you are working on Windows and your
work directory is
D:\Work.
b. At the MATLAB command prompt, change directory to the new
MagicSquareExample subdirectory in your work directory.
3 Write the makesqr function as you would any MATLAB function.
Hereisthecodeforthe
makesqr function:
function y = makesqr(x)
y = magic(x);
This code is already in your directory in
MagicSquareExample\MagicDemoComp\makesqr.m.
4 While in MATLAB, issue the foll owing command to open the Deployment
Tool:
deploytool
5 Create a n ew project
a. Click the New Deployment Project button
in the Deployment Tool
toolbar.
Alternatively you can select File > New Deployment Project from
the MATLAB menu bar.
b. In the navigation pane, select MATLAB Builder for Java as the
product you want to use to create the deployment project.
c. From the component list, select Java as the kind of com ponent you
want to create.
d. Click Browse to drill and select the location for y our project.
e. Type the project name as
magicsquare and click OK.
Note By default, the project name is also the component name.
1-16
Przeglądanie stron 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag