MATLAB BUILDER JA 2 Guía de usuario Página 194: Using MWArray Classes

/ 292
Tabla de contenidos
4

Using MWArray Classes

Example — Making a Shared Copy of a Character Array Object
Create a shared copy of
MWCharArray
object
A
:
char[] chArray = {'H', 'e', 'l', 'l', 'o'};
MWCharArray A = new MWCharArray(chArray);
Object S = A.sharedCopy();
System.out.print("Shared copy of matrix A is \"" +
S.toString() + "\"");
When run, the example displays this output:
Shared copy of matrix A is "Hello"
toString.
MWCharArray
inherits this method from the
MWArray
class.

Using MWStructArray

This section covers the following topics:
•
“Constructing an MWStructArray” on page 4-118
•
“Methods to Destroy an MWStructArray” on page 4-120
•
“Methods to Return Information About an MWStructArray” on page 4-121
•
“Methods to Get and Set Data in the MWStructArray” on page 4-124
•
“Methods to Copy, Convert, and Compare MWStructArrays” on page 4-132

Constructing an MWStructArray

Use the tables in this section to construct an
MWStructArray
from a particular
Java data type. See the examples at the end of this section for more help.
Constructing an Empty Structure Array.
To construct an empty 0-by-0
MATLAB structure array, use
MWStructArray()
4-118

Archivo PDF · ·

Imprimir

Imprimir documento

Compartiendo

Preguntas sobre MATLAB BUILDER JA 2

Todavía no hay preguntas sobre este manual. Haga la primera.

Hacer una pregunta

Respondemos con el manual e indicamos la página. La pregunta se publica en el sitio después de revisarla.

Todas las preguntas y respuestas ›

Productos y manuales relacionados para Software MATLAB BUILDER JA 2