Displaying Data From a MATLAB Function
이전 댓글 표시
I have a MATLAB Function embedded in a simulation that is called cyclically. I would like to display information from that function as the simulation runs. I tried both disp() and fprint() but the information does not appear in the Command Window as the simulation runs. I verified that it hits the display lines by using a debug break. disp() lines that are placed in various .m files that initialize and start the simulation all appear as expected in the Command Window, just not those that are in the cycling MATLAB Function.
댓글 수: 2
Albert Fan
2018년 7월 18일
I think the issue might be the stdout is dropped or flushed to somewhere else since it is called in a simulation. While I don't have much idea over that, you can simply save what shall be printed in your fprintf() function into a txt file locally and check that file you wrote after you've finished your simulation.
Tom
2018년 7월 19일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Code Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!