error in ss2tf when modelling a DC motor

1 回表示 (過去 30 日間)
Avinash Tallapaneni
Avinash Tallapaneni 2018 年 9 月 7 日
回答済み: Xu Da 2019 年 4 月 26 日
hello guys,
i am getting error when i try to run it. it says " The B and D matrices must have the same number of columns."
%motor parameters
Km = 50.2*10^-3; % NM/A
Kb = (1/(190*2*pi/60)); %or V/Wm (wm in rps) volt/rps
Jm =11.6 *10^-7; %kgm^2
Bm = ((50.2*10^-3)*(20*10^-3)/(9080*2*pi/60));
R =10.6; %ohm
L = .82*10^-3;% H(henry)
%state space model
A = [-R/L -Kb/L ;Km/Jm -Bm/Jm ];
B = [1/L 0 ;0 -1/Jm ];
C = [0 1];
D = 0;
%state space
Motor_ss = ss(A,B,C,D);
[num_omega, dem_omega] = ss2tf(A,B,C,D);
can someone identify whats wrong with this code?
  2 件のコメント
Star Strider
Star Strider 2018 年 9 月 7 日
Please post your original model equations, or a PDF or an image of them.
Avinash Tallapaneni
Avinash Tallapaneni 2018 年 9 月 7 日
i have inserted final model equation...

サインインしてコメントする。

回答 (1 件)

Xu Da
Xu Da 2019 年 4 月 26 日
Hi, Tallapaneni
You have got the error B value. It shoud be like that
B = [1/L ; -1/Jm ]

コミュニティ

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by