Prev: Statistical Mode of Data
Next: Heard of ismap?
From: Grant Rettke on 16 Mar 2010 15:35 Can MATLAB warn you when you when you redefine existing functions? For example if you redefine 'sum' and start using it as an accumulator, can MATLAB warn you when this occurs?
From: Matt J on 16 Mar 2010 16:02 Grant Rettke <grettke(a)gmail.com> wrote in message <b225271b-81a9-4e14-8934-a63ceca4d521(a)b7g2000yqd.googlegroups.com>... > Can MATLAB warn you when you when you redefine existing functions? > > For example if you redefine 'sum' and start using it as an > accumulator, can MATLAB warn you when this occurs? ================ It can and it does, at least as of R2009b.
From: Grant Rettke on 16 Mar 2010 16:19 Hi Matt, On Mar 16, 3:02 pm, "Matt J " <mattjacREM...(a)THISieee.spam> wrote: > Grant Rettke <gret...(a)gmail.com> wrote in message <b225271b-81a9-4e14-8934-a63ceca4d...(a)b7g2000yqd.googlegroups.com>... > > Can MATLAB warn you when you when you redefine existing functions? > > > For example if you redefine 'sum' and start using it as an > > accumulator, can MATLAB warn you when this occurs? > > ================ > > It can and it does, at least as of R2009b. I had been running R2009a :). Having just installed 2010a I tried running this: sum = 0; for i=1:10; sum = sum + i; end sum The 'sum' function was redefined, but I did not see any complaints, at least in the REPL. I must be doing something wrong. Where should I look for warnings?
|
Pages: 1 Prev: Statistical Mode of Data Next: Heard of ismap? |