|
From: | Doug Stewart |
Subject: | Re: Octave-4.2.1 problem with "pause" command |
Date: | Sun, 16 Jul 2017 10:24:37 -0400 |
On Sun, Jul 16, 2017 at 10:00 AM, Ying-Foon Chow (FEG) <address@hidden> wrote:Hi,I am a new user using Octave 4.2.1 in Windows 7. Somehow the following program always hang my machine if I don't specify a time in the "pause" command:t=linspace(-1,1,1024);
plot(t,exp(t)),grid
title('exponential function')
pause
t0=clock;t=0;
while t<20
axis([0 0 1 1]+exp(-t/5)*[-1 1 -1 1])
drawnow
t=etime(clock,t0);
endThat is, I can't get the figure to "move" no matter what key I press. Thanks in advance for any advice that may be offered.YF
[Prev in Thread] | Current Thread | [Next in Thread] |