[Top][All Lists]

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

Re: LSODE Question - External Inputs?

From: damian.harty
Subject: Re: LSODE Question - External Inputs?
Date: Thu, 23 Feb 2012 09:46:07 -0800 (PST)

I made some progress passing in the variables for m, k and c:



I should politely point out that if the impression is widely held that the
manual entry for anonymous functions explains that, then it doesn't - your
reply was much clearer than the manual entry.

Emboldened by this, I thought I would try passing in my "u" vector. The u
vector is a displacement applied to the base of the system, determined in
advance - an "obstacle", if you like. The example is a pretty trivial one
but it paves the way for various things now.

This was my attempt:



So, right now I see what I expect to see. Whether or not it's the best way
to code it I have no idea, in particular making a copy of the time vector to
pass in twice seems strange but I can't work out how not to need it for
interpolation of the u vector I passed in. If there is a better way to take
the derivative on the fly I'd like to hear it, too.

Other than that, I think it's mission accomplished for the moment.

Many thanks for both replies, without which I would have failed dismally!


Senior Research Fellow - Vehicle & System Dynamics
Coventry University
United Kingdom
View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

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