MATLAB BUILDER JA 2 Guide de l'utilisateur Page 165

  • 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 164
Using Class Methods
equals. MWNumericArray inherits this m ethod from the MWArray class.
hashcode.
MWNumericArray inherits this method from the MWArray class.
sharedCopy. This method creates and returns a shared copy of the
MWNumericArray object. The shared copy points to the underlying original
MATLAB array. Any changes made to the copy are reflected in the original.
The
sharedCopy method of MWNumericArray overrides the sharedCopy
method of class MWArray.
The prototype for the
sharedCopy m ethod is as follows:
public Object sharedCopy()
Input Parameters
None
Example Making a Shared Copy of a Numeric Array Object
Create a shared copy of MWArray object A:
Object S = A.sharedCopy();
System.out.println("Shared copy of matrix A is:");
System.out.println(S.toString());
When run, the example displays this output:
Shared copy of matrix A is:
123456
7 8 9101112
13 14 15 16 17 18
toString. MWNumericArray inherits this method from the MWArray class.
4-89
Vue de la page 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 291 292

Commentaires sur ces manuels

Pas de commentaire