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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 159
4 Using MWArra y Classes
System.out.println("The imaginary part of A(2,3) = " +
A.getImagDouble(index));
When run, the example displays this output:
The real part of A(2,3) = 10.0
The imaginary part of A(2,3) = 23.0
getImagFloat. This method returns the imaginary part of the
MWNumericArray element located at the specified one-based index or index
array. The return value is given type
float.
Use either of the following prototypes for the
getImagFloat method, where
index can be of type int or int[]:
public float getImagFloat(int index)
public float getImagFloat(int[] index)
getImagLong. This method returns the imaginary part of the
MWNumericArray element located at the specified one-based index or index
array. The return value is given type
long.
Use either o f the f oll owing prototypes f or the
getImagLong method, where
index can be of type int or int[]:
public long getImagLong(int index)
public long getImagLong(int[] index)
getImagInt. This method returns the imaginary part of the MWNumericArray
element located at the specified one-based index or index array. The return
value is given type
int.
Use either of th e follow in g prototypes for the
getImagInt method, where
index can be of type int or int[]:
public int getImagInt(int index)
public int getImagInt(int[] index)
getImagShort. This method returns the imaginary part of the
MWNumericArray element located at the specified one-based index or index
array. The return value is given type
short.
4-84
Przeglądanie stron 159
1 2 ... 155 156 157 158 159 160 161 162 163 164 165 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag