Simulink quesstion with using fnc block
6 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
採用された回答
madhan ravi
2019 年 3 月 25 日
function Vs = fcn(Vp,Zw,N,Zl)
7 件のコメント
madhan ravi
2019 年 3 月 25 日
編集済み: madhan ravi
2019 年 3 月 25 日
Exactly, see a simple example below:![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/210349/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/210349/image.png)
In the picture above
5 => u(1)
1 => u(2)
2 => u(3)
black rectangle is the Mux block.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Programmatic Model Editing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!