MATLAB: I have a tf(num,den), and I need to obtain values like G(s)=y from it. Is there any function that allows me to do that

controlMATLABtransfer function

num=[1 1 0]; den=[1 2 3 4];
G=tf(num,den)

Best Answer

Use the evalfr (link) function:
num=[1 1 0]; den=[1 2 3 4];
G=tf(num,den);
s1=2+3i;
Gs1 = evalfr(G,s1) % G(s1)=???
producing:
Gs1 =
0.197938144329897 - 0.145360824742268i