Simulink quesstion with using fnc block
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
madhan ravi
le 25 Mar 2019
function Vs = fcn(Vp,Zw,N,Zl)
7 commentaires
madhan ravi
le 25 Mar 2019
Modifié(e) : madhan ravi
le 25 Mar 2019
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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!