[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: weird bug with plot/hold?
From: |
Ares |
Subject: |
Re: weird bug with plot/hold? |
Date: |
Tue, 31 Jul 2007 13:04:47 +0200 |
I made a mistake: the 2nd line of in the second version code is *hold
off* instead of *hold on*...
2007/7/31, Ares <address@hidden>:
> 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/
>
--
Diego
http://www.ares001.altervista.org/