MATLAB BUILDER JA 2 Uživatelská příručka Strana 197

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 292
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 196
Using Class Methods
Example—DisposingofaStructureArrayObject
int[] sdims = {1, 2};
String[] sfields = {"f1", "f2", "f3"};
MWStructArray S = new MWStructArray(sdims, sfields);
System.out.println("Structure array S: " + S);
System.out.println("Now disposing of array S\n");
S.dispose();
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
Now disposing of array S
Structure array S: []
disposeArray. MWStructArray inherits this method from the MWArray class.
Methods to Return Information About an MWStructArray
Use these methods to return information about an object of class
MWStructArray.
Method Description
“classID” on page 4-122 Returns the MATLAB type of this array.
“fieldNames” on page
4-122
Returns the field names in this array.
“getDimensions” on page
4-123
Returns an array containing the size of each
dimension of this array.
“isEmpty” on page 4-123 Tests whether the a rray has no elements.
4-121
Zobrazit stránku 196
1 2 ... 192 193 194 195 196 197 198 199 200 201 202 ... 291 292

Komentáře k této Příručce

Žádné komentáře