MATLAB BUILDER JA 2 Guide de l'utilisateur Page 196

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 292
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 195
4 Using MWArra y Classes
The second example creates a 1-by-2 MWStructArray obje ct with fields f1,
f2,andf3:
int[] sdims = {1, 2};
String[] sfields = {"f1", "f2", "f3"};
MWStructArray S = new MWStructArray(sdims, sfields);
System.out.println("Structure array S: " + S);
When run, the example displays this output:
Structure array S: 1x2 struct array with fields:
f1
f2
f3
Methods to Destroy an MWStructArray
To destroy the arrays, use either dispose or disposeArray.
Method Description
“dispose” on
page 4-120
Frees the native MATLAB array contained by this array.
“disposeArray”
on page 4-121
Frees a ll native MATLAB arrays contained in the input
object.
dispose. The dispose method of MWStructArray overrides the dispose
method of class MWArray.
The prototype for the
dispose method is
public void dispose()
Input Parameters
None
4-120
Vue de la page 195
1 2 ... 191 192 193 194 195 196 197 198 199 200 201 ... 291 292

Commentaires sur ces manuels

Pas de commentaire