function H=feedbacksym(G1,G2,key) % feedbacksym finds the closed-form transfer function matrix % Copyright (c) Dingyu Xue, Northeastern University, China % Last modified 18 May, 2022 arguments, G1, G2, key(1,1)=-1; end G01=G1*G2; G02=G2*G1; [n1,m1]=size(G01); [n2,m2]=size(G02); if n1~=m1 || n2~=m2, error('Model sizes are incompatible'), end if n1