Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

using PID function in MATLAB

Status
Not open for further replies.

andrewllewop

Newbie level 4
Joined
Nov 24, 2012
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,324
Having issues with using the PID function in MATLAB:

whenever i try to use the pid function in matlab in the command window I get the message "undefined function or variables". But I am seeing examples where the PID function is used. eg C = pid(Kp,Ki,Kd). not sure if there is a missing toolbox, file or something. I've just started a Controls class so I am still a novice with using some of the features of MATLAB. If someone could tell me a fix for this. i'd appreciate it

Thanks in advance
 

try using this:
Code:
Kp = 1;
Ki = 1;
Kd = 1;

s = tf('s');
C = Kp + Ki/s + Kd*s
instead of C = pid(Kp,Ki,Kd)
 

it depends on the version of matlab you are using i suppose.the older versions doesnt have certain commands and the other problem could be that some files of your library might have been corrupted. :)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top