[Top][All Lists]

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

Re: problem while obtaing matrixes into symbolic format

From: Colin Macdonald
Subject: Re: problem while obtaing matrixes into symbolic format
Date: Wed, 3 Oct 2018 10:21:34 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0

I suspect "ss" from the control pkg does not support symbolic inputs.

On 2018-10-03 10:13 a.m., Beginner1 wrote:
I want to obtain the system defined by its state-space matrixes (A_ol,
B_ol,C_ol and D_ol) into symbolic format. The parameters these matrixes
depend on have specific values but in the current case I want to obtain the
A_ol, B_ol,C_ol and D_ol matrixes into symbolic. However, Octave gives an
error saying:
error: lti: set: key 'lti' requires an LTI model
error: called from
     set at line 135 column 13
     ss at line 249 column 9
     trysimbols_m at line 46 column 10

And it is a linear time invariant model. Any advice to solve this?

/*pkg load symbolic
pkg load control

syms kv Tv kq Tq kdroop_AC FSM_slope enable

%Outer loop:Vdc-Q
    A_ol=[0 0;0 0];
   B_ol=[-kv/Tv kv/Tv 0 0 0 0 -kv*FSM_slope*enable/Tv kv*enable/Tv
-kv*enable/Tv kv*enable/Tv;0 0 kq/Tq -kq/Tq -(kq/Tq)*kdroop_AC
(kq/Tq)*kdroop_AC 0 0 0 0];
   C_ol=[1 0;0 1];
   D_ol=[-kv kv 0 0 0 0 -kv*FSM_slope*enable kv*enable -kv*enable kv*enable;0
0 kq -kq -kq*kdroop_AC kq*kdroop_AC 0 0 0 0];

  %Outer loop
   stname_ol = {'xv','xq'};
   sys_ol = ss

Sent from:

reply via email to

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