MATLAB BUILDER JA 2 Guía de usuario Pagina 211

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 292
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 210
Using Class Methods
Input Parameters
None
Example Making a Shared Copy of a Structure Array Object
Create an MWStructArray object and then a shared copy of that object:
int[] sdims = {1, 2};
String[] sfields = {"f1", "f2", "f3"};
MWStructArray S = new MWStructArray(sdims, sfields);
Object C = S.sharedCopy();
System.out.println("Shared copy of structure S is:");
System.out.println(C.toString());
When run, the example displays this output:
Shared copy of structure S is:
1x2 struct array with fields:
f1
f2
f3
toString. MWStructArray inherits this m ethod from the MWArray class.
Using MWCellArray
This section cov ers the following topics:
“Constructing an MWCellArray” on page 4-136
“Methods to Destroy an M WC ellArray” on page 4-137
“Methods to Return Information About an MWCellArray” on page 4-138
“Methods to Get and Set Data in the MWCellArray” on page 4-140
“Methods to Copy, Convert, and Compare MWCellArrays” on page 4-147
4-135
Vista de pagina 210
1 2 ... 206 207 208 209 210 211 212 213 214 215 216 ... 291 292

Comentarios a estos manuales

Sin comentarios