octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #65401] [octave forge] (control) A problem wit


From: Ahmed Salah Hammad Ahmed
Subject: [Octave-bug-tracker] [bug #65401] [octave forge] (control) A problem with lsim command
Date: Sat, 2 Mar 2024 14:07:07 -0500 (EST)

Follow-up Comment #4, bug #65401 (group octave):


[comment #2 comment #2:]
> Thanks for the report. For me (control package 4.0.0) the simulation with

> t = 0:0.01:10;
> u = rand (length (t), 3);


> works. When using the transposed array for u, I also see the error

> error: lsim: length of time vector (1001) doesn't match input signal
(3x1001)


> The documentation for lsim (also on Matlab) says that u must have length(t)
rows and as many columns as there are inputs. It looks like Matlab is just
more "tolerant" regarding the shape of u. I can add this "robustness" to
Octave's control package, too. 
> 
> For the other error message, it would be helpful if you post the complete
code as suggested by Nicholas in comment #2.


Indeed, transposing the input matrix worked, so I just need input matrix to
have no. of columns as no. of inputs, and no. of rows as the time vector,
right?
For the second error, I have posted the lines of code in the previous comment
if you want to check it out


Thanks a lot



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65401>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]