MATLAB BUILDER JA 2 Guida Utente Pagina 211

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 292
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la 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
Vedere la pagina 210
1 2 ... 206 207 208 209 210 211 212 213 214 215 216 ... 291 292

Commenti su questo manuale

Nessun commento