help-octave
[Top][All Lists]
Advanced

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

Re: Control Toolbox


From: Doug Stewart
Subject: Re: Control Toolbox
Date: Fri, 26 Apr 2019 05:22:23 -0400



On Fri, Apr 26, 2019 at 3:24 AM marshall028 <address@hidden> wrote:
I am attempting to write a program for a bio mechanical spring system.  I
have input the matrices and given values but when it comes to using the
control toolbox in order to write step-systems, I keep running into "binary
operator '!=' not implemented for 'cell' by 'scalar' operations"

Here is what i have for code for that section of the project...
sysstep = ss(A,bstep,C,D);
sysimpulse = ss(A,bimp,C,D);
t = linspace(0,.25,1000);

[y,t,x] = step(sysstep,t);
y1 = .02*y;x1 = .02*x;
[y1,t,x1] = impulse(sysimpulse,t);
y2 = .02*y1;x2 = .02*x1;

Any ideas as to where I am going wrong and encountering this error?

Thank you,

Tom

try:
 
sys= ss(A,bstep,C,D);
figure(1)
step(sys)
figure(2)
impulse(sys)




--
DASCertificate for 206392


reply via email to

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