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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 147
4 Using MWArra y Classes
classID. MWNumericArray inherits this method from the MWArray class.
complexity. This method returns the complexity of the
MWNumericArray
object as either MWComplexity.REAL for a real array, or MWComplexity.COMPLEX
for a complex array.
The prototype for the
complexity method is
public MWComplexity complexity()
Input Parameters
None
Example Testing for a Complex Array
Determine whether matrix A is real or complex:
double AReal = 24;
double AImag = 5;
MWNumericArray A = new MWNumericArray(AReal, AImag);
System.out.println("A is a " + A.complexity() + " matrix");
When run, the example displays this output:
A is a complex matrix
getDimensions. MWNumericArray inherits this m ethod from the MWArray
class.
isEmpty.
MWNumericArray inherits this method from the MWArray class.
isFinite. This method tests for finiteness in a machine-independent manner.
This is a static m ethod of the class and does not need to be invoked in
reference to an i nstance of the class.
The prototype for the
isFinite method is as follows:
public static boolean isFinite(double value)
4-72
Przeglądanie stron 147
1 2 ... 143 144 145 146 147 148 149 150 151 152 153 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag