Simulink quesstion with using fnc block
조회 수: 4 (최근 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!