Undefined function or method 'pid' for input arguments of type 'double'.
Afficher commentaires plus anciens
Hi, I am a beginner and would like to try out matlab for my assignment. I am encountering the error as ' Undefined function or method 'pid' for input arguments of type 'double'.' I can't figure out why. Please help.
clear all
clc
syms s
Gnum =exp(-0.5);
Gden = [7.724 32.317 25.220]; %((s+1)*((s+5)^2));
G=tf(Gnum,Gden);
H = 1;
T = feedback (G,H);
step(T)
hold on
Kp = 26.995;
Ki = 21.067;
Kd = 6.452;
Gc = pid(Kp,Ki,Kd);
Mc = feedback(Gc*G,H);
step = (Mc);
grid on
5 commentaires
Guillaume
le 24 Nov 2014
What does
which pid
return?
Phyo
le 24 Nov 2014
Phyo
le 24 Nov 2014
Guillaume
le 24 Nov 2014
I'll ask again, what does
which pid
return when you type that at the matlab prompt? That will tell us whether the function is visible to matlab or not.
Phyo
le 24 Nov 2014
Réponses (1)
Arkadiy Turevskiy
le 26 Nov 2014
0 votes
As you might have already realized, the pid objects were introduced in Control System Toolbox in release 2010b, so you would not be able to use them in 2009a.
Catégories
En savoir plus sur PID Controller Tuning dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!