フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How can I call the properties of figure with more than 1 graph in it?

1 回表示 (過去 30 日間)
Mohammad
Mohammad 2014 年 1 月 31 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have a figure that has more than 1 graphs in it. How can I change the lineStyle of each one?

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 1 月 31 日
t=0:0.1:10;
y1=sin(t)
y2=cos(t)
h=plot(t,y1,t,y2)
set(h(1),'linewidth',12)
% h(1) and h(2) are handles of plot 1 and plot 2
  2 件のコメント
Mohammad
Mohammad 2014 年 1 月 31 日
Thank you, but I'm not the one drawing the graphs, The user enters a .fig file...
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 1 月 31 日
You can get the handles h by
h=get(gca,'children')

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by