MATLAB BUILDER JA 2 Guide de l'utilisateur Page 118

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 292
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 117
1 2 ... 113 114 115 116 117 118 119 120 121 122 123 ... 291 292

Commentaires sur ces manuels

Pas de commentaire