# HG changeset patch # User schloegl # Date 1427458354 0 # Node ID 7a64d4df29875ff8f35bd0f60e719cd942b8e38b # Parent 1e7c0678833921d4c1a6f2c99d50e70f8706dd06 bug fix reported by Sanjay Manahor diff -r 1e7c06788339 -r 7a64d4df2987 extra/NaN/inst/nanstd.m --- a/extra/NaN/inst/nanstd.m Wed Mar 25 17:42:19 2015 +0000 +++ b/extra/NaN/inst/nanstd.m Fri Mar 27 12:12:34 2015 +0000 @@ -60,7 +60,7 @@ end; if (FLAG==1) - y = sqrt(y)./n; % normalize with N + y = sqrt(y./n); % normalize with N else % default method y = sqrt(y./max(n-1,0)); % normalize with N-1