MATLAB BUILDER JA 2 Guía de usuario Pagina 118

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 292
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 117
4 Using MWArra y Classes
When run, the example displays this output:
Class of A is int32
getDimensions. This method returns a one-dimensional int array
containing the size of each dimension of the
MWArray object.
The prototype for the
getDimensions method is a s follows:
public int[] getDimensions()
Input Parameters
None
Example Getting Array Dimensions of an MWArray
int[] dimA = A.getDimensions();
System.out.println("Dimensions of A are " +
dimA[0] + " x " + dimA[1]);
When run, the example displays this output:
Dimensions of A are 3 x 6
isEmpty. This method returns true if the array object contains n o elements,
and
false otherwise.
The prototype for the
isEmpty method is as fo llows:
public boolean isEmpty()
Input Parameters
None
4-42
Vista de pagina 117
1 2 ... 113 114 115 116 117 118 119 120 121 122 123 ... 291 292

Comentarios a estos manuales

Sin comentarios