MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   【求助】问题出现了,怎么改呢? (https://www.labfans.com/bbs/showthread.php?t=187)

babyspring111 2007-05-18 16:11

【求助】问题出现了,怎么改呢?
 
输入输出有约束的模型预测控制器设计
[COLOR="SeaGreen"]问题出现在了,怎么改呢?》[/COLOR]
[SIZE="5"]请各位大侠帮忙,急¥¥¥[/SIZE]

g11=poly2tfd(0.4,[13 1],0,53);
g12=poly2tfd(0.3,[15 1],0,41);
g13=poly2tfd(0,[0 1],0,0);
g14=poly2tfd(0,[0 1],0,0);

g21=poly2tfd(0.8,[9 1],0,24);
g22=poly2tfd(0.4,[14 1],0,31);
g23=poly2tfd(0,[0 1],0,0);
g24=poly2tfd(0,[0 1],0,0);

g31=poly2tfd(0.4,[16 1],0,47);
g32=poly2tfd(0.7,[18 1],0,37);
g33=poly2tfd(0,[0 1],0,0);
g34=poly2tfd(0,[0 1],0,0);

g41=poly2tfd(0,[0 1],0,0);
g42=poly2tfd(0.4,[15 1],0,37);
g43=poly2tfd(0.45,[18 1],0,20);
g44=poly2tfd(0,[0 1],0,0);

g51=poly2tfd(0,[0 1],0,0);
g52=poly2tfd(0,[0 1],0,0);
g53=poly2tfd(0.05,[17 1],0,54)
g54=poly2tfd(0.02,[19 1],0,50);

delt=3;
ny=2;tfinal=90
model=tfd2step(tfinal,delt,ny,g11,g12,g13,g14,g21,g22,g23,g24,g31,g32,g33,g34,g41,g42,g43,g44,g45,g51,g52,g53,g54);

[COLOR="Red"]====error using tfd2step
transter function must contain three rows.[/COLOR]

babyspring111 2007-05-18 16:17

人气真是不旺啊
急死我了 ,
5555555

babyspring111 2007-05-20 18:55

自己顶顶666666666

spy1120 2007-05-20 20:57

不好意思
我没用过tfd2step函数
====error using tfd2step
transter function must contain three rows.
错误使用tfd2step,tfd2step函数必须包括三行。

你用help tfd2step查查看吧

wufen096 2008-09-21 15:10

回复: 【求助】问题出现了,怎么改呢?
 
程序没有错误,
model=tfd2step(tfinal,delt,ny,g11,g12,g13,g14,g21,g22,g23,g24,g31,g32,g33,g34,g41,g42,g43,g44,g45,g51,g52,g53,g54);中多了个g45,删掉即可


所有时间均为北京时间。现在的时间是 11:33

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.