Regarding Transfer function blcok

1 回表示 (過去 30 日間)
Naga
Naga 2019 年 11 月 11 日
コメント済み: Naga 2019 年 11 月 12 日
I am working on a Simulink model Which consists of Various Simulink blocks. I have to replace all these blocks with Matlab Function by writing the equivalent Matlab Code in it.
I have got a problem while replacing the Transfer Function in it. i.e, I used "tf" command to replace the first order Transfer Function but my Matlab doesn't consist "Control_Toolbox" which is very expensive. So, Can I replace this Transfer Function with any other logic insted of using Control_ToolBox. The Transfer Function looks as shown below.
Your ideas can be really helpful. Thank you
Transfer_Function.png

採用された回答

Jesús Zambrano
Jesús Zambrano 2019 年 11 月 12 日
Hi Nagasai,
When you can say logic, it refers to include types of blocks such as AND / OR / NOT etc instead of your trasnfer function... That´s why I said that it is not possible to do it in that way.
From the screenshot you attach, I think that you want to implement it in time-domain instead of in frequency domain. In this case, you could use the command
sys_ss = ss(sys)
where ss is your trasnfer function.
This function is part of the Control System Toolbox, for more details check this link:
Best,
Jesús
  1 件のコメント
Naga
Naga 2019 年 11 月 12 日
Hi Jesus,
Thank you for your help. Actually my Supervisor told me to avoid using the Control Toolbox instead told that I can implement the code for that PT1 system.
As he mentioned that I can write some code, I thought it is possible to do that. After listening to what you said , I came to the conclusion that we can do that only with the Control ToolBox license

サインインしてコメントする。

その他の回答 (1 件)

Jesús Zambrano
Jesús Zambrano 2019 年 11 月 11 日
Hi Nagasai,
A transfer function relates the process output ith its input, usually written in frequency domain, where the analysis of such a systems is made by using Laplace transform. In this way, the amplitud of the output at certain frequency is described as a function of the frequency of the input signal. There is not relationship between a transfer function and a logic implementation, therefore, it cannot be replaced with any logic.
Best,
Jesús
  1 件のコメント
Naga
Naga 2019 年 11 月 12 日
Hi Jesus,
Thank you for your response. Actually I have found a code written in another Programming Language when I googled it. I'm attaching that pic below.
So I was wondering whether the same logic is possible in Matlab as well. If possible ,please tell me.
Thank youPC Code.png

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeInteractive Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by