MATLAB BUILDER JA 2 Betriebsanweisung Seite 165

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 292
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 291 292

Kommentare zu diesen Handbüchern

Keine Kommentare