Matlab get transfer function from Simulink

247 Views Asked by At

enter image description here

Is it possible to use MATLAB to retrieve the data from Simulink from this block diagram and plot the transfer function?

I have already tried using tf, but that did not work.

res = sim("Test.slx");
G = tf(res.simout.data,res.in.data);
1

There are 1 best solutions below

0
Marco Torres On

Did you try to use the Linearization tool? Example here