# How to get tf() to display as a figure to use in a report?

112 views (last 30 days)

Show older comments

Christopher Mood
on 25 Apr 2021

Commented: Star Strider
on 26 Apr 2021

##### 0 Comments

### Accepted Answer

Clayton Gotberg
on 26 Apr 2021

I'm not sure if there's a specific function, but as a workaround you can try the below code in a MATLAB Live Script.

syms s

[num, den] = tfdata(transfer_function);

eqn_top = poly2sym(num,s);

eqn_bot = poly2sym(den,s);

result = eqn_top/eqn_bot

On the side, this should print the system's transfer function, formatted like an equation. You right-click to copy it in standard, LaTeX or MathML formats (I think Windows equation editor can understand LaTeX).

I ran this code with a test system and got this output:

##### 4 Comments

Clayton Gotberg
on 26 Apr 2021

### More Answers (0)

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!