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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 154
Using Class Methods
System.out.println("Setting A(2, 3) to a new value ...");
A.set(idx, 555);
System.out.println("");
System.out.println("A(2, 3) is now " + A.get(idx).toString());
When run, the example displays this output:
A(2, 3) is 9.0
Setting A(2, 3) to a new value ...
A(2, 3) is now 555.0
set. MWNumericArray inherits the following methods from the MWArray class.
set(int index, type element)
set(int[] index,
type element)
MWNumericArray
also ov erloads set for primitive byte, short, int, long,
float,anddouble types.
toArray.
MWNumericArray inherits this method from the MWArray class.
Methods to Get and Set the Imaginary Parts of an
MWNumericArray
Use these meth od s to ge t an d set imaginary valu es in a n ob ject of class
MWNumericArray.
Method Description
“getImag” on page
4-81
Returns the imaginary p art at the specified index
array in this array.
“getImagData” on
page 4-82
Returns a one-dimensional array containing a copy
of the imaginary data in the underlying MATLAB
array.
“getImagDouble” on
page 4-83
Returns the imaginary part at the specified offset
as a
double value.
4-79
Przeglądanie stron 154
1 2 ... 150 151 152 153 154 155 156 157 158 159 160 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag