フィルターのクリア

How to transfer diagram to figure

3 ビュー (過去 30 日間)
Tran Hoa
Tran Hoa 2020 年 4 月 11 日
コメント済み: Tran Hoa 2020 年 4 月 11 日
Hi members
Could you instruct me How to tranfer figure (a) to figure (b).
Thank you so much !

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 4 月 11 日
You need the handle of the lines in figure (a) and handle of axes in figure(b), then use
copyobj(line_handles, axes_handle)
to copy the lines to figure(b)
  3 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 4 月 11 日
See this example. First I plot the data you gave. Then I create a new figure, make a new line and then copy the line from figure 1 to figure 2.
YMatrix1=[0.3473, 0.3471, 0.3470,0.3468,0.3454,0.3452,0.3452,0.3452, 0.3423,0.3423];
semilogy1 = semilogy(YMatrix1,'LineWidth',2);
figure();
ax = axes();
plot(0.345+rand(1,10)*0.005, 'r');
copyobj(semilogy1, ax)
Tran Hoa
Tran Hoa 2020 年 4 月 11 日
Thank you. I will try

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Object Identification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by