help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

weird bug with plot/hold?


From: Ares
Subject: weird bug with plot/hold?
Date: Tue, 31 Jul 2007 12:34:59 +0200

Hi all again

I have this dummy function:

= = = =
function out = weird_bug(in)

for h = 1:100
   plot(0,0)
   hold on
end

out = 1;
= = = =

when I run it the 2nd time (without closing figure nor holding off/on)
I get strange error messages from gnuplot like

gnuplot> e
         ^
         line 1200: invalid command

if I change the function in


= = = =
function out = weird_bug(in)

hold on

for h = 1:100
   plot(0,0)
   hold on
end

out = 1;
= = = =

everything goes smooth... a bug?

regards,
-- 
Diego
http://www.ares001.altervista.org/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]