How to plot 2D graph using 'to workspace block' and need to be popped up after simulation completed

5 views (last 30 days)

Answers (1)

Tarunbir Gambhir
Tarunbir Gambhir on 29 Apr 2021
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);

Community Treasure Hunt

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

Start Hunting!