MATLAB BUILDER JA 2 Guide de l'utilisateur Page 155

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 292
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 154
1 2 ... 150 151 152 153 154 155 156 157 158 159 160 ... 291 292

Commentaires sur ces manuels

Pas de commentaire