How to plot transfer function with cos or sin

29 ビュー (過去 30 日間)
Chang Will
Chang Will 2022 年 8 月 26 日
回答済み: Abderrahim. B 2022 年 8 月 26 日
When I want to print a transfer function such as (p*(cos(w1*z)-1))/(z.*z-2*cos(w1*z)+1), I found that most case include the official guidance of matlab use command ‘tf“.But it seems that tf can only be used to create functions that only contains some simple stuff like s^2+9s+1. Here's question: what shoulf I do to create functions with cos or sin or whaterever else so that i can easily put i into other functions like 'bode'?

回答 (1 件)

Abderrahim. B
Abderrahim. B 2022 年 8 月 26 日
Hi You have those cosine components which means that your system is non linear,and transfer function is only for linear systems. What I suggest is to linearize your model, to do so there is a function called linearize(). Another option is to do system identification if you have some measurements (Input/output)..
Hope this helps

カテゴリ

Help Center および File ExchangeGet Started with Control System Toolbox についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by