MATLAB BUILDER JA 2 User's Guide Page 85

  • Download
  • Add to my manuals
  • Print
  • Page
    / 292
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 84
Guidelines for Working with MWArray Classes
Supported Data Types. In the previous table, type represents supported
Java types.
MWNumericArray supports the follow ing Java primitive types:
double
float
byte
short
int
long
boolean
The following object types are also supported:
Subclasses of
java.lang.Number
Subclasses of java.lang.String
Subclasses of java.lang.Boolean
In addition to supporting scalar values of the types listed, g eneral
N-dimensional arrays of each type are also supported.
Constructing Different Types of Numeric Arrays
Here are some examples showing how to construct different types of numeric
arrays with the various forms of the
MWNumericArray constructor.
Constructing Complex Arrays
The f ollo wing four statements all construct a complex scalar int32 array
with a value of
1+2i:
MWNumericArray a1 = new MWNumericArray(1, 2);
MWNumericArray a2 = new MWNumericArray(1.0, 2.0,
MWClassID.INT32);
MWNumericArray a3 = new MWNumericArray(new Double(1.0),
4-9
Page view 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 291 292

Comments to this Manuals

No comments