[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Speed of lsim
From: |
Geraint Paul Bevan |
Subject: |
Re: Speed of lsim |
Date: |
Tue, 29 Jul 2003 19:41:23 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 |
I've run the same test a couple of times on the same machine with Octave
versions 2.1.35 and 2.1.50. The newer version of Octave is much faster,
which seems to agree with the previous results.
Best advice is probably to upgrade to version 2.1.50.
Octave 2.1.35:
octave:1> sys = tf2sys(1, [1,1]);
octave:2> t = linspace(0,10,1001)';
octave:3> u = ones(1001,1);
octave:4> tic; lsim(sys,u,t); toc
ans = 24.715
and again:
ans = 26.644
Octave 2.1.50:
octave:1> sys = tf2sys(1, [1,1]);
octave:2> t = linspace(0,10,1001)';
octave:3> u = ones(1001,1);
octave:4> tic; lsim(sys,u,t); toc
ans = 0.45955
--
Geraint Bevan
Department of Mechanical Engineering
University of Glasgow
Tel: +44 (0)141 330 5917
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------