User`s guide

4 Using MWArra y Classes
Method Description
“getImagFloat” on
page 4-84
Returns the imagin ary part at the specified offset as
a
float value.
“getImagLong” on
page 4-84
Returns the imaginary part at the specified offset
as a
long value.
“getImagInt” on page
4-84
Returns the imagin ary part at the specified offset as
an
int value.
“getImagShort” on
page 4-84
Returns the imagin ary part at the specified offset as
a
short value.
“getImagByte” on
page 4-85
Returns the imaginary part at the specified offset
as a
byte value.
“setImag” on page
4-85
Replaces the imaginary part at the specified index
array in this array with the specified double value.
“toImagArray” on
page 4-86
Returns an array containing a copy of the imaginary
data in the u nderlying MATLAB array. The
returned array h as the same dimensionality as the
MATLAB array.
The following syntax applies to all the above methods except getImagData.
Calling Sy n ta x. To get the element at a specific index, use one of the
following:
public type getImagType(int index)
public
type getImagType(int[] index)
To set the element at a specific index, use one of the following:
public void setImag(int index, type element)
public void setImag(int[] index,
type element)
Use the first syntax (int index) to return the ele ment at the specified
one-based offset in the a rray, accessing elements in column-wise order. Us e the
second syntax (
int[] index) to return the element at the specified array of
one-based indices. The first syntax offers better performance than the second.
4-80