MATLAB: Are we giving {1} in below command … What is the significance ?

residue

C=tf(1, [1 3 2]);
[x, y]=residue(C.num {1}, C.den {1})
temp=0;
syms s t
for i=1:numel(y)
temp=temp+(x(i)/(s-y(i)))
end

Best Answer

C.num and C.den are cell arrays. Check
class(C.num)
Cell arrays are different than simple array in MATLAB. To index a cell array, you need {} brackets.