How to write the Laplace symbol s in trigonometric function?

조회 수: 2 (최근 30일)
Siyu He
Siyu He 2015년 6월 19일
댓글: Siyu He 2015년 6월 19일
Hi,
I am trying to express a transfer function, which has the Laplace symbol s in a sine function. I am wondering how to express this in Matlab? The transfer function is:
I wrote is as
ms=(3.77-0.034)/2.5e-6; K1=sin(s*Toff/(2i))*asin(s*(Ton+Toff)/(2i))*(Ton+Toff)/Toff;
Fm=Toff/(ms*(Ton+Toff)^2)*K1*exp(s*Ton/2);
However, Matlab can not recognize this code.
Please help me with this question.

답변 (1개)

Walter Roberson
Walter Roberson 2015년 6월 19일
If you have the symbolic toolbox then proceed those lines with
syms s
  댓글 수: 1
Siyu He
Siyu He 2015년 6월 19일
Thanks Walter.
I have the symbolic toolbox, but I need this transfer function to be plotted by command bode(); Can I still use the syms s?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by