How to plot 2D graph using 'to workspace block' and need to be popped up after simulation completed
조회 수: 2 (최근 30일)
이전 댓글 표시
I am trying to plot using to workspace block and I am sending x, y data to workspace . I need to plot the graph after the simulation completed and they need to pop up.
TIA
답변 (1개)
Tarunbir Gambhir
2021년 4월 29일
You can write a matlab script that runs your simulation model and then plots the data that is added to the workspace. Something like this,
sim('my_model');
% assuming the data saved to the workspace has variable name x and y
plot(x,y);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!