Clear Filters
Clear Filters

Simulink quesstion with using fnc block

6 views (last 30 days)
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?

Accepted Answer

madhan ravi
madhan ravi on 25 Mar 2019
function Vs = fcn(Vp,Zw,N,Zl)
  7 Comments
madhan ravi
madhan ravi on 25 Mar 2019
Edited: madhan ravi on 25 Mar 2019
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 on 26 Mar 2019
Edited: madhan ravi on 26 Mar 2019
Okay, that was all I wanted to make sure, thanks.

Sign in to comment.

More Answers (0)

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!