[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:
one_dof.m:
EqMotion.m:
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:
one_dof.m:
EqMotion.m:
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!
Damian
-----
Senior Research Fellow - Vehicle & System Dynamics
Coventry University
United Kingdom
--
View this message in context:
http://octave.1599824.n4.nabble.com/LSODE-Question-External-Inputs-tp4414228p4414606.html
Sent from the Octave - General mailing list archive at Nabble.com.
- LSODE Question - External Inputs?, damian.harty, 2012/02/23
- Re: LSODE Question - External Inputs?, Juan Pablo Carbajal, 2012/02/23
- Re: LSODE Question - External Inputs?, Olaf Till, 2012/02/23
- Re: LSODE Question - External Inputs?,
damian.harty <=
- Re: LSODE Question - External Inputs?, Juan Pablo Carbajal, 2012/02/23
- Re: LSODE Question - External Inputs?, damian.harty, 2012/02/24
- Re: LSODE Question - External Inputs?, Olaf Till, 2012/02/24
- Re: LSODE Question - External Inputs?, damian.harty, 2012/02/24
- Re: LSODE Question - External Inputs?, Juan Pablo Carbajal, 2012/02/24
- Re: LSODE Question - External Inputs?, damian.harty, 2012/02/24
- Re: LSODE Question - External Inputs?, Olaf Till, 2012/02/24
- Re: LSODE Question - External Inputs?, damian.harty, 2012/02/27
- Re: LSODE Question - External Inputs?, Jordi GutiƩrrez Hermoso, 2012/02/27
- Re: LSODE Question - External Inputs?, damian.harty, 2012/02/28