changeset 4077:b5267e631ba8

[project @ 2002-09-27 22:48:46 by jwe]
author jwe
date Fri, 27 Sep 2002 22:48:46 +0000
parents c651ee4c0846
children bd51df637cb3
files scripts/ChangeLog scripts/signal/fftshift.m scripts/specfun/erfinv.m
diffstat 3 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Fri Sep 27 22:02:43 2002 +0000
+++ b/scripts/ChangeLog	Fri Sep 27 22:48:46 2002 +0000
@@ -1,3 +1,7 @@
+2002-09-27  Paul Kienzle <pkienzle@users.sf.net>
+
+	* specfun/erfinv.m: Return NaN for NaN inputs.
+
 2002-09-26  Jeff Cunningham <jeffrey@cunningham.net>
 
 	* statistics/base/var.m: Handle complex values.
--- a/scripts/signal/fftshift.m	Fri Sep 27 22:02:43 2002 +0000
+++ b/scripts/signal/fftshift.m	Fri Sep 27 22:48:46 2002 +0000
@@ -23,12 +23,12 @@
 ## and @code{ifft} functions, in order the move the frequency 0 to the
 ## center of the vector or matrix.
 ##
-## If @var{v} is a vector of @math{E} elements corresponding to @math{E}
+## If @var{v} is a vector of @math{N} elements corresponding to @math{N}
 ## time samples spaced of @math{Dt} each, then @code{fftshift (fft
 ## (@var{v}))} corresponds to frequencies
 ##
 ## @example
-## f = linspace (-E/(4*Dt), (E/2-1)/(2*Dt), E)
+## f = ((1:N) - ceil(N/2)) / N / Dt
 ## @end example
 ##
 ## If @var{v} is a matrix, the same holds for rows and columns.
--- a/scripts/specfun/erfinv.m	Fri Sep 27 22:02:43 2002 +0000
+++ b/scripts/specfun/erfinv.m	Fri Sep 27 22:48:46 2002 +0000
@@ -42,7 +42,7 @@
   x = reshape (x, m * n, 1);
   y = zeros (m * n, 1);
 
-  i = find ((x < -1) | (x > 1));
+  i = find ((x < -1) | (x > 1) | isnan(x));
   if any (i)
     y(i) = NaN * ones (length (i), 1);
   endif