octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

minor problem in iqr.m


From: Applee
Subject: minor problem in iqr.m
Date: Fri, 10 Aug 2012 15:00:57 +0800


I think the condition check in iqr.m from line 52 - 56 may be wrong,

52    if (! (isscalar (dim) && dim == round (dim))
53 && dim > 0
54 && dim < (nd + 1))
55      error ("iqr: dim must be an integer and valid dimension");
56    endif 

the condition checking should be

if (! (isscalar (dim) && dim == round (dim) && dim > 0 && dim < (nd + 1)))
    error ...
endif

--------------------------------
Best regards,

Zhitao,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]