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 Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!