[project @ 2004-03-02 14:21:02 by jwe]
author |
jwe |
date |
Tue, 02 Mar 2004 14:21:02 +0000 |
parents |
d3bd9c04147f |
children |
a9ec0ce18568 |
files |
scripts/ChangeLog scripts/signal/sinc.m |
diffstat |
2 files changed, 5 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2004-03-02 Paul Kienzle <pkienzle@users.sf.net>
+
+ * signal/sinc.m: Use i(:) instead of i when checking for any nonzeros.
+
2004-03-01 John W. Eaton <jwe@bevo.che.wisc.edu>
* miscellaneous/horzcat.m: Delete.
--- a/scripts/signal/sinc.m
+++ b/scripts/signal/sinc.m
@@ -38,7 +38,7 @@
i = (x != 0);
- if (any (i))
+ if (any (i(:)))
t = pi * x(i);
result(i) = sin (t) ./ t;
endif