フィルターのクリア

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

7 ビュー (過去 30 日間)
MG
MG 2021 年 4 月 26 日
回答済み: Tarunbir Gambhir 2021 年 4 月 29 日
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
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);

カテゴリ

Help Center および File ExchangeView and Analyze Simulation Results についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by