From: Eric Durant Subject: Name hiding bug with subs() in Symbolic Toolbox Date: 21 Jun 2000 00:00:00 GMT Message-ID: <39510837.C19B0111@umich.edu> Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@eecs.umich.edu X-Trace: news.eecs.umich.edu 961611723 45450 141.213.12.216 (21 Jun 2000 18:22:03 GMT) Organization: EECS Dept. Univ. of Michigan Mime-Version: 1.0 Newsgroups: comp.soft-sys.matlab I'm also reporting this to The MathWorks, but thought readers of this group might be interested. There seems to be a name hiding bug in toolbox/symbolic/@sym/subs.m in Matlab 5.3.1.29215a (R11.1) [tested on both SunOS 5.6 and PCWIN versions]. The variable "r" is used internally and cannot be left as a free variable when calling subs(). Here is the minimal (I think) code that reproduces the bug: clear all syms r b subs(r+b, b, 1) % Generates warning and [] as answer clear all syms s b subs(s+b, b, 1) % Generates expected answer -- Eric Durant http://www.edurant.com/