IMC (internal model control) structure with connect command
Show older comments
Hi I want to implement the IMC structure as shown in the picture below. I was wondering if the following code is correct ? Because it seems that it's not. Thanks

P = tf([1],[1 1]); P.InputName = 'u'; P.OutputName = 'y';
M = tf([1],[1 1]); M.InputName = 'u'; M.OutputName = 'ym';
Q = tf([1 1],[2 1]); Q.InputName = 'e'; Q.OutputName = 'u';
Sum1 = sumblk('d = y - ym'); Sum2 = sumblk('e = r - d');
T = connect(Q,M,P,Sum1,Sum2,'r','y');
Answers (0)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!