Hello everyone, I have a problem in simulink
1 回表示 (過去 30 日間)
古いコメントを表示
I have written a code in Matlab and that is running well but when i am linking it with Simulink i am not able to see the output in Scope. I have tried a lot but not getting output and there is no error in the code as well as in simulink compilation. I am attaching my file here.
0 件のコメント
採用された回答
Naty Shemer
2017 年 7 月 13 日
Hey,
I have ran your script. The output is 0 and that's was shown in the scope. You defined the output "a" as always 0. That's probably not what you meant..
Naty
2 件のコメント
Naty Shemer
2017 年 7 月 13 日
If you want to plot y you need to output y from your matlab function. In your particular case just substitute
a=0;
by
a=y;
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Simulink Environment Customization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!