[15569] in Athena Bugs
Matlab 5.1 path problem
daemon@ATHENA.MIT.EDU (Brian Sperry)
Thu Oct 9 22:24:05 1997
Date: Thu, 09 Oct 1997 22:24:01 -0400
From: Brian Sperry <sperry@resonance.mit.edu>
To: 3partysw@MIT.EDU
Cc: bugs@MIT.EDU
Just in case you haven't heard about this one yet...
In the new signals toolbox (ver 4.0.1), under Matlab 5.1,
several m-files call the function "sinc.m", defined
as sin(pi*x)/(pi*x). The problem is that there is also
a second sinc function, defined as sin(x)/x, that lives in
/mit/matlab_v5.1/distrib/toolbox/contrib/math,
which shows up first in the matlab path. This function
gets called first and then screws up all the of routines
that expect Matlab's own version of sinc (e.g. firls.m).
In case it matters, I'm running this on a Linux machine.
For now, I'm just removing the contrib directory from
my matlab path since I don't need anything there.
Cheers,
Brian