[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: |
Fri, 24 Feb 2012 06:43:42 -0800 (PST) |
Hmm, I'm becoming baffled with the included code not being there thing. I
just pasted it in as plain text last time, and I could see it in my e-mail
and from inside Nabble...
Anyway, I think you are understanding what I'm trying to do and I get the
non-constant calling interval with lsode.
In principle I thought it wouldn't be any bother to get my function to
return more than one variable but what with the anonymous function and
ISTAGE and MSG variables I can't really work out what the syntax is to
actually achieve it.
Inside the file EqMotion.m I have
function [xdot, ISTATE, MSG] = EqMotion (x,t,m,k,c,u,udot,t_vector)
...
Fx=k*(u_now-x(1))+preload
...
endfunction
If I add xdot(3)=Fk into it then lsode protests about a dimensional
mismatch.
And inside one_dof.m I have
[x, ISTATE,MSG] = lsode (@ (x,t) EqMotion ((x,t,m,k,c,u,udot,t_vector), x0,
t);
So how do I modify the function definition and call to pass back Fk? I want
to put it on the left hand side but lsode protests again...
Thanks in advance,
Damian
And
-----
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-tp4414228p4417389.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, 2012/02/23
- 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 <=
- 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
- Generic Mapping Tools, Ismael Núñez-Riboni, 2012/02/24
- Re: Generic Mapping Tools, Ben Abbott, 2012/02/24
- Re: Generic Mapping Tools, Ismael Núñez-Riboni, 2012/02/24
- Re: Generic Mapping Tools, Rudolf Widmer-Schnidrig, 2012/02/24