MATLAB Compiler Previous page   Next Page

static bool IsInf(double x)

Test if value is infinite and returns true if value is infinite.

C++ syntax

Arguments

Value to test for infinity

Return value

Result of test.

Description

Call mwArray::IsInf to determine whether or not a value is equal to infinity or minus infinity. MATLAB stores the value of infinity in a permanent variable named Inf, which represents IEEE arithmetic positive infinity. The value of the variable, Inf, is built into the system; you cannot modify it.

Operations that return infinity include:


Previous page  static bool IsFinite(double x) static bool IsNaN(double x) Next page

© 1994-2005 The MathWorks, Inc.