MATLAB BUILDER JA 2 Guida Utente Pagina 155

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 292
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 154
1 2 ... 150 151 152 153 154 155 156 157 158 159 160 ... 291 292

Commenti su questo manuale

Nessun commento