Undefined function 'acker' for input arguments of type 'double'.

261 ビュー (過去 30 日間)
Konstantinos Merokis
Konstantinos Merokis 2014 年 2 月 27 日
回答済み: Konstantinos Merokis 2014 年 2 月 27 日
Hello all,
My problem is this: Undefined function 'acker' for input arguments of type 'double'. I searched a bit here for an answer and i found out that i have to add the path to my working directory i did that and i still have this problem. My code is this:
clc, clear, cnt=1;
Vin=12; L=100e-3; C=200e-6; R=10;
Vss=24
dnom=1-Vin/Vss
x1ref=Vin/(1-dnom)
x2ref=Vin/R/(1-dnom)^2
xref=[x1ref;x2ref]
dss=dnom
xss=xref
Aon=[-1/R/C 0;0 0] Aoff=[-1/R/C 1/C;-1/L 0] f=10000 T=1/f A1=Aon A2=Aoff
A=A1+A2*dss
B=A2*xss
poles= eig(A)
p1=-800+i
p2=-800-i
K=acker(A,B,[p1 p2])
Does anyone know how to help me? Thanks in advance.

回答 (3 件)

Mischa Kim
Mischa Kim 2014 年 2 月 27 日
編集済み: Mischa Kim 2014 年 2 月 27 日
Konstantinos, there is a chance that you do not have the corresponding (Control System) toolbox licensed/installed. See this answer.

Thomas
Thomas 2014 年 2 月 27 日
編集済み: Thomas 2014 年 2 月 27 日
acker is the old pole placement function using Ackerman's formula from the control system toolbox..
try
which acker
if you dont find it- mean you do not have the controls toolbox..
Might want to use 'place' instead of 'acker' ( though you might not have place either if you do not have the controls toolbox)
K=place(A,B,[p1 p2])
%%
ver
will give you a list of all the toolboxes you have.

Konstantinos Merokis
Konstantinos Merokis 2014 年 2 月 27 日
Thank you very much for your fast answers! Helped me a lot!

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by