merging two plots of different program

how can i call another program so that i merge plots of these two programs.

4 件のコメント

Walter Roberson
Walter Roberson 2019 年 8 月 1 日
Sometimes it is as easy as calling
hold on
and invoking the second program. But sometimes it can get considerably more difficult, depending exactly how the second program does the plotting.
sadia sabahat
sadia sabahat 2019 年 8 月 1 日
actually the first program is theory based graph and second one is the real plot so i want to plot real data on the theory base plot
Jackson Burns
Jackson Burns 2019 年 8 月 1 日
Can you post your code so that we have more context for the issue?
Walter Roberson
Walter Roberson 2019 年 8 月 2 日
If you are using plot() of a graph() or digraph() object, then you can just
hold on
and plot additional items -- plot() of graph() and digraph() objects use regular axes

サインインしてコメントする。

 採用された回答

Star Strider
Star Strider 2019 年 8 月 1 日

1 投票

I woiuld save the plot created in the first script as a .fig file using the savefig function, then in the second script use openfig to load it into that script’s workspace and add whatever you want to it using the hold function. Then use savefig on it again, if you want to save the new figure as a .fig file.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGraph and Network Algorithms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by