Error using DynamicSystem/pidtune
显示 更早的评论
I am using the following matlab function to update the PID parameter ******************************************* function [Kp,Ki,Kd] = PIDEst() X = xlsread("D:\data\X.xls"); Y = xlsread("D:\data\Y.xls"); trData= iddata (Y,X,1); sys = tfest(trData,2) ; C = pidtune(sys,"pid") ; Kp= C.Kp ; Ki=C.Ki; Kd=C.Kd; ************************************* I am getting this error each time I try to run this function "Error using DynamicSystem/pidtune (line 102) The first input argument of the "pidtune" command must be a single-input, single-output linear plant model" Please help
1 个评论
Walter Roberson
2018-4-22
Do either of your xls files have multiple columns? That could trigger a problem like that.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Transfer Function Models 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!