MATLAB BUILDER EX 1 Betriebsanweisung Seite 171

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 182
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 170
Utility Library Classes
D-27
MWSparse object has its own MWFlags property. This property overrides the
value of the any flags set on the object whose methods are called.
Sub Clone(ppSparse As MWSparse)
Creates a copy of an MWSparse object.
Parameters.
Return Value.
None.
Remarks. Clone allocates a new MWSparse object and creates a deep copy of the
objects contents. Call this function when a separate object is required instead
of a shared copy of an existing object reference.
Example. The following Visual Basic sample creates a 5-by-5 tridiagonal sparse
array with the following entries:
X = [ 2 -1 0 0 0
-1 2 -1 0 0
0 -1 2 -1 0
0 0 -1 2 -1
0 0 0 -1 2 ]
Sub foo()
Dim x As MWSparse
Dim rows(1 To 13) As Long
Dim cols(1 To 13) As Long
Dim vals(1 To 13) As Double
Dim I As Long, K As Long
On Error GoTo Handle_Error
K = 1
For I = 1 To 4
rows(K) = I
Argument Type Description
ppSparse MWSparse
Reference to an uninitialized
MWSparse object to receive the
copy.
Seitenansicht 170
1 2 ... 166 167 168 169 170 171 172 173 174 175 176 ... 181 182

Kommentare zu diesen Handbüchern

Keine Kommentare