Need Instantaneous PID Value
显示 更早的评论
I am using PID controller and the input is 3x1. The output I am getting is in 3x1 tf format. But I need it to be 3x1 double at a single time instant.
(I will use a for loop later in which T_x will vary. At this moment, I am initializing T_x as [0;0;0])
Following is the code:
T_x=[0;0;0];
T_d=[0;0;0]; %desired value
T_e=T_d-T_x;
C_PD = pid(100,0,10,100);
T_u=T_e*C_PD
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Dynamic System Models 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!