if else statement in simulink function
2 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone. I am trying to make a switch using function. V states for voltage and when it exceeds 50V on voltmeter, the d value must be switched to V. But in all my simulations it keeps to stay at d=Iold instead of d=Vold even though the voltage already exceeded 50V. Would appreciate your suggestions
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/343216/image.png)
0 件のコメント
回答 (1 件)
Gouri Chennuru
2020 年 8 月 14 日
Hi Arnur,
I recommend you to check the inputs to the function & configure the inports to the model & the output to the function call and use the MATLAB function block enable you to define custom functionality in Simulink where that function is implemented using MATLAB.
Thanks & Regards,
Gouri Chennuru.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!