Hello,
I have found what I think is a bug in lsim function.
There is a main line where the system is simulated:
x0 = F*x0 + G*u(:,ii)
This seems to be wrong since if we assume that x0 is the state, then it
should be something like: x0 = x0 + (F*x0 + G*u(:,ii))*Ts; Where Ts is the
time sampling.
For me it is very difficult to believe that lsim has a bug because it is
very tested, so correct me if I am wrong.
Pau
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev