How do i get the Transfer function of sinh(s)/cosh(s) in matlab?

Hi,
I have a control problem. My plant is given as P(s)=sinh(s1)/cosh(s1) but i can`t apply this in matlab. This is my script:
s= tf('s');
c=100;
s1=s*(1/c);
P_wave=sinh(s1)/cosh(s1);
Written in exponentials:
P_wave_exp = (0.5*(exp(s1)-exp(-s1)))/(0.5*(exp(s1)+exp(-s1)));
And this is the warning i get:
Undefined function 'sinh' for input arguments of type 'tf'.
Can some one help me please?
Kind regards,
Robbin

Answers (1)

Look at tf help. The numerator and denominator should be a polynomial of s, not sin or any different function

1 Comment

Thanks, But i find another way, by writing it as an function with iw. And then plotting the absolute value and the phase change.

Sign in to comment.

Categories

Find more on Programming in Help Center and File Exchange

Asked:

on 6 Jul 2013

Community Treasure Hunt

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

Start Hunting!