MATLAB BUILDER JA 2 User's Guide Page 25

  • Download
  • Add to my manuals
  • Print
  • Page
    / 292
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 24
Example: Magic S quare
When you create a new project, the Deploy ment Tool dialog bo x shows the
folders that are part of the project. By default the top folder represents a
Java class belonging to the component. By default the class name is the
same as the project name.
Note When a ne w project first opens, the folders in the project are empty.
6 En ter the settings for the project.
a. Right-click the top folder, which represents the Java class you are
going to create, and s elect Rename Class.
b. In the Rename Class dialog box, enter
magic and click OK.
c. Add the
makesqr.m file to the project by dragging the file from the
Current Directory pane in the MATLAB desktop to the
magic folder
in the Deployment Tool dialog box.
d. Select Generate Verbose Output.
e. Save the project by clicking
(Save) in the Deploy ment Tool toolbar.
7 Build the project by clicking (Build) in the Deploym ent Tool toolbar.
The build process begins, and a log of the build is created. The files that are
needed for the component are generated in two new ly created directories,
src and distrib, i n the project direc tory. A copy of the build log is placed
in the
src directory.
Note To create and build the
magicsquare component without using the
Deployment Tool to create a project, issue the following command at the
MATLAB prompt:
mcc -W 'java
:magicsquare,magic' makesqr.m
If you build your component using the mcc command, Java Builder does
not create the
src and distrib subdirectories.
See“WhatHappensintheBuildProcess?”onpage2-9formoreinformation.
1-17
Page view 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 291 292

Comments to this Manuals

No comments