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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 200
Using Class Methods
Method Description
“getField”
on page
4-128
Returns a shared copy of the element at the specifie d one-based
offset and field name in this array as an
MWArray instance.
“set” on
page 4-129
Replaces the element at the specified one-based offset in this
array with t he specified element.
“toArray”
on page
4-131
Returns an array containing a copy of the data in the
underlying M ATLAB array. The returned array has the same
dimensionality as the MATLAB array.
get. This me thod returns the element at the specified one-based offset in
this array. The returned element is converted to a Java array using default
conversion rules.
Togettheelementataspecificindex,use one of the following. Calling this
method i s equivalent to calling
getField(index).toArray().
public Object get(int index)
public Object get(int[] index)
To get the element at a specific index and structure field, use one of the
following. Calling this method is equivalent to calling
getField(fieldname,
index).toArray()
.
public Object get(String fieldname, int index)
public Object get(String fieldname, int[] index)
Use the first syntax (int index) to return the ele ment at the specified
one-based offset in the a rray, accessing elements in column-wise order. Us e the
second syntax (
int[] index) to return the element at the specified array of
one-based indices. The first syntax offers better performance than the second.
Input Parameters
fieldname
Field name of the requested element
4-125
Przeglądanie stron 200
1 2 ... 196 197 198 199 200 201 202 203 204 205 206 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag