MATLAB BUILDER JA 2 Betriebsanweisung Seite 229

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 292
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 228
Using Class Methods
Example Determining the Complexity of an Array
Determine whether matrix A is real or complex. The complexity method of
MWNumericArray returns an enumeration of type MWComplexity.
double AReal = 24;
double AImag = 5;
MWNumericArray A = new MWNumericArray(AReal, AImag);
System.out.println("A is a " + A.complexity() + " matrix");
When run, the example displays this output:
A is a complex matrix
Methods of MWCom plex ity
toString. This m ethod returns a string representation of the property. The
toString method of MWComplexity overrides the toString method of class
java.lang.Object.
The prototype for the
toString method is as follows:
public java.lang.String toString()
4-153
Seitenansicht 228
1 2 ... 224 225 226 227 228 229 230 231 232 233 234 ... 291 292

Kommentare zu diesen Handbüchern

Keine Kommentare