[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lsim() trims time vector in an odd fashion
From: |
Lukas Reichlin |
Subject: |
Re: lsim() trims time vector in an odd fashion |
Date: |
Thu, 27 Nov 2014 03:19:04 +0100 |
> On 23.11.2014, at 18:28, rocketsound <address@hidden> wrote:
>
> Yes, I get the same results. I noticed this approach works only if the system
> supplied to lsim is discrete (i.e. if I replace discreteSystemZOH with
> continousSystem in my example code it wont work and I get "invalid time
> vector") but I guess this behaviour is correct.
For continuous-time models, try passing a scalar sampling time "t_sam" instead
of a time vector "t_vec".
[y_out, t_out, x_out] = lsim (sys, u_vec, t_sam, x_0)
where
t_sam = t_vec(2) - t_vec(1)
- lsim() trims time vector in an odd fashion, rocketsound, 2014/11/20
- Re: lsim() trims time vector in an odd fashion, Lukas Reichlin, 2014/11/20
- Re: lsim() trims time vector in an odd fashion, rocketsound, 2014/11/21
- Re: lsim() trims time vector in an odd fashion, Lukas Reichlin, 2014/11/21
- Re: lsim() trims time vector in an odd fashion, rocketsound, 2014/11/23
- Re: lsim() trims time vector in an odd fashion, rocketsound, 2014/11/26
- Re: lsim() trims time vector in an odd fashion,
Lukas Reichlin <=
- Re: lsim() trims time vector in an odd fashion, Lukas Reichlin, 2014/11/30
- Re: lsim() trims time vector in an odd fashion, rocketsound, 2014/11/30