Simulink quesstion with using fnc block

Hi I'm pretty new to using simulink and have a quick question about the fcn block. If I wanted to input an equation such as
Vs= Vp./((Zw./(N*ZL))+N)
, would all the variables be replaced with u instead?

 採用された回答

madhan ravi
madhan ravi 2019 年 3 月 25 日

0 投票

function Vs = fcn(Vp,Zw,N,Zl)

7 件のコメント

Light
Light 2019 年 3 月 25 日
I was talking about simulink and not within matlab script.
madhan ravi
madhan ravi 2019 年 3 月 25 日
So was I, double click function block see what happens, you were the one who used function block (what’s the need to use it then??).
Light
Light 2019 年 3 月 25 日
I'm trying to copy a model for a transformer and was told to use the fcn block to insert an equation. I am not sure how to insert the equation. I am confused by your question and response.
https://www.mathworks.com/help/simulink/slref/fcn.html
madhan ravi
madhan ravi 2019 年 3 月 25 日
編集済み: madhan ravi 2019 年 3 月 25 日
Light
Light 2019 年 3 月 25 日
編集済み: Light 2019 年 3 月 25 日
Right so that leads back to my original question? How is the equation inserted in the block. Are my variables just replaced by u? I Attached the diagram below for reference.
transformer.PNGI Attached the diagram above for reference.
madhan ravi
madhan ravi 2019 年 3 月 25 日
編集済み: madhan ravi 2019 年 3 月 25 日
Exactly, see a simple example below:
In the picture above
5 => u(1)
1 => u(2)
2 => u(3)
black rectangle is the Mux block.
Light
Light 2019 年 3 月 26 日
編集済み: madhan ravi 2019 年 3 月 26 日
Okay, that was all I wanted to make sure, thanks.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGeneral Applications についてさらに検索

製品

質問済み:

2019 年 3 月 25 日

編集済み:

2019 年 3 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by