MATLAB BUILDER JA 2 Podręcznik Użytkownika Strona 188

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 187
4 Using MWArra y Classes
When run, the example displays this output:
The class of A is char
getDimensions.
MWCharArray inherits this method from the MWArray class.
isEmpty.
MWCharArray inherits this method from the MWArray class.
numberOfDimensions.
MWCharArray inherits this m ethod from the
MWArray class.
numberOfElem ents.
MWCharArray inherits this method from the MWArray
class.
Methods to Get and Set Data in the MWCharArray
Use these methods to get and set values in an object of class MWCharArray.
Method Description
“get” on page
4-112
Returnstheelementatthespecifiedoffsetasan
Object.
“getData” on page
4-112
Returns a one-dimensional array containing a copy of
the data in the underlying MATLAB array.
“getChar” on page
4-113
Returns the character at the specified one -bas ed offset.
“set” on page
4-114
Replaces the element at the specified one-based offset
in this array with the specified element .
“toArray” on page
4-116
Returns an array containing a copy of the d ata in the
underlying MATLAB array. The returned array has the
same dimensionality as the MATLAB array.
get. MWCharArray inherits this method from the MWArray class.
getData.
MWCharArray inherits this method from the MWArray class.
4-112
Przeglądanie stron 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag