MATLAB BUILDER EX 1 Guide de l'utilisateur Page 146

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 164
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 145
1 2 ... 141 142 143 144 145 146 147 148 149 150 151 ... 163 164

Commentaires sur ces manuels

Pas de commentaire