include a parameter inside a transfer function?

Hello all
I want to enter the following transfer function (as a function of s)
(s+2)/(s+b), where b is a parameter.
I tried with
syms b
sys=tf([1 2], [1 b])
But it gave me a error. How can I do this?

Categories

Asked:

JJ
on 26 Mar 2014

Answered:

on 26 Mar 2014

Community Treasure Hunt

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

Start Hunting!