MATLAB BUILDER EX 1 Betriebsanweisung Seite 146

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 164
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 145
C Utility Library
and type of the Real property’s array, an error results when the object is
used in a method call.
Example. The following Visual B asic code cre ate s a complex array with
the following entrie s:
x = [ 1+i 1+2i
2+i 2+2i ]
Sub foo()
Dim x As MWComplex
Dim rval(1 To 2, 1 To 2) As Double
Dim ival(1 To 2, 1 To 2) As Double
On Error Goto Handle_Error
ForI=1To2
ForJ=1To2
rval(I,J) = I
ival(I,J) = J
Next
Next
Set x = new MWComplex
x.Real = rval
x.Imag = ival
.
.
.
Exit Sub
Handle_Error:
MsgBox(Err.Description)
End Sub
PropertyMWFlagsAsMWFlags
Stores a reference to an MWFlags object. T his property sets or gets the array
formatting and data conversion flags for a particular complex array. Each
MWComplex object has its own MWFlags property. This property overrides the
value of any flags set on the object whose methods are called.
C-26
Seitenansicht 145
1 2 ... 141 142 143 144 145 146 147 148 149 150 151 ... 163 164

Kommentare zu diesen Handbüchern

Keine Kommentare