TianZhendong
6 years ago
committed by
GitHub
1 changed files with 0 additions and 7 deletions
@ -1,7 +0,0 @@ |
|||||
function z=fitness(Kp,Ki,Kd) |
|
||||
|
|
||||
assignin('base','Kp',Kp); |
|
||||
assignin('base','Ki',Ki); |
|
||||
assignin('base','Kd',Kd); |
|
||||
[~,~,y_out]=sim('thetapid',[0,50]); |
|
||||
z=1/(y_out(end,1)); %%表示 取这个 矩阵的第一列最后一行的数据。 |
|
Loading…
Reference in new issue