MATLAB BUILDER JA 2 Guida Utente Pagina 116

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 292
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 115
4 Using MWArra y Classes
disposeArray. This method destroys any native MATLAB arrays contained
in the input object and frees the m emory occupied by them. This is a static
method of the class and thus does not need to be invoked in reference to an
instance of the class.
The prototype for the
disposeArray method is as follows:
public static void disposeArray(Object arr)
Input Parameters
arr
Object to be disposed of
If the input object represents a single
MWArray instance, then that instance is
freed when you call its
dispose() method.
If the input object represents an array of
MWArray instances, each object in the
array is d isposed of.
If the input object represents an array of
Object or a multidimensional array,
thearrayisrecursivelyprocessedtofreeeach
MWArray contained in the array.
Example Constructing an MWNumericArray Object
Construct and then destroy an array of numeric objects:
MWArray[] MArr = new MWArray[10];
for (int i = 0; i < 10; i++)
MArr[i] = new MWNumericArray();
MWArray.disposeArray(MArr);
Methods to Return Information About an MWArra y
Use these methods to return information about an object of class MWArray or
any of its child classes.
4-40
Vedere la pagina 115
1 2 ... 111 112 113 114 115 116 117 118 119 120 121 ... 291 292

Commenti su questo manuale

Nessun commento