pid tunnig with non unity feedback

M
metchat aissa · Mar 24, 2023 · 1.9K views
Question
Hello, I would like to know what the code would be to obtain the PID values for the sys below, with G , H are two tranfers functions and C is the pid controller     i used the following code but it didn't work!!!   C=pidtune(feedback(G,H),'pid',1.0) sys=feedback(C*G,H) step(sys)  
Expert Answer
Profile picture of Kshitij Singh
Kshitij Singh PhD Expert
Answered Aug 14, 2026

Try the following approach:

 

s=tf('s'); %needed to define transfer function in s domain
G=1/3*s+4;H=1/(0.1*s+1); %if feedback is not unity, then it has to be considered in open loop, as G*H
C=pidtune(G*H,'PID',1) 
sys=(C*G)/(1+C*G*H)
step(sys)

 

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!