Mercurial > forge
changeset 10932:476efedd2c35 octave-forge
control: add remark
author | paramaniac |
---|---|
date | Tue, 25 Sep 2012 18:47:40 +0000 |
parents | 259247833409 |
children | d69e68a9dcb4 |
files | main/control/inst/lsim.m |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/main/control/inst/lsim.m Tue Sep 25 18:39:21 2012 +0000 +++ b/main/control/inst/lsim.m Tue Sep 25 18:47:40 2012 +0000 @@ -71,6 +71,10 @@ function [y_r, t_r, x_r] = lsim (varargin) + ## TODO: individual initial state vectors 'x0' for each system + ## there would be conflicts with other arguments, + ## maybe a cell {x0_1, x0_2, ..., x0_N} would be a solution? + if (nargin < 2) print_usage (); endif @@ -88,7 +92,6 @@ t = []; x0 = []; - % method = "zoh"; if (n_mat < 1) error ("lsim: require input signal 'u'"); @@ -237,7 +240,6 @@ [A, B, C, D] = ssdata (sys); [p, m] = size (D); # number of outputs and inputs n = rows (A); # number of states - % len_t = length (t); ## time vector t = reshape (tinitial : dt : tfinal, [], 1);