필터 지우기
필터 지우기

Hello everyone, I have a problem in simulink

조회 수: 1 (최근 30일)
Niharika Pantawane
Niharika Pantawane 2017년 7월 13일
댓글: Naty Shemer 2017년 7월 13일
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.

채택된 답변

Naty Shemer
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
Niharika Pantawane
Niharika Pantawane 2017년 7월 13일
Thanks for replying. I want to plot y in scope. Can you help me out
Naty Shemer
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 CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by