MATLAB BUILDER JA 2 Guia do Utilizador Página 197

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 292
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 196
1 2 ... 192 193 194 195 196 197 198 199 200 201 202 ... 291 292

Comentários a estes Manuais

Sem comentários