Matlab get transfer function from Simulink

1 view (last 30 days)
Dario
Dario on 21 Mar 2023
Edited: Bora Eryilmaz on 21 Mar 2023
Is it possible to use Matlab to retrieve the data from Simulink from this block diagram and plot the transfer function?
  1 Comment
Sachin
Sachin on 21 Mar 2023
Edited: Sachin on 21 Mar 2023
Hi
Try this
toWksData = get(out,"simout");

Sign in to comment.

Answers (1)

Bora Eryilmaz
Bora Eryilmaz on 21 Mar 2023
Edited: Bora Eryilmaz on 21 Mar 2023
Yes. It is called linearization. If you have access to the Control System Toolbox and/or Simulink Control Design, you can use linearization to extract a transfer function between two operating points. Take a look at:
Your question is a bit ambiguous, since you need an input and an output to construct and plot a transfer function. Just reading "out.in" will not be sufficient to plot a transfer function.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!