关于NaN
一个比较大的三维数组,其中有少数元素是NaN,现在打算把这些元素定位出来,有没有函数或其它方法可以实现? CVF online document:ISNAN
Elemental Intrinsic Function (Generic): Tests whether IEEE® real (S_floating and T_floating) numbers are Not-a-Number (NaN) values.
Syntax
result = ISNAN (x)
x
(Output) Must be of type real.
Results:
The result is of type default logical. The result is .TRUE. if x is an IEEE NaN; otherwise, the result is .FALSE..
Examples
LOGICAL A
DOUBLE PRECISION B
...
A = ISNAN(B)
A is assigned the value .TRUE. if B is an IEEE NaN; otherwise, the value assigned is .FALSE.. 看来要成为一个优秀的程序员真不容易啊 原帖由 alvin11 于 2006-10-18 14:22 发表
看来要成为一个优秀的程序员真不容易啊
这年头做什么都不太容易
页:
[1]