Using same slider for more than one subplots (slider_plot)

2 ビュー (過去 30 日間)
Shreya Thusoo
Shreya Thusoo 2017 年 3 月 12 日
回答済み: Jan 2017 年 3 月 12 日
I have multiple plots in a figure that I want to animate at the same time to see the effect of changing variable on all the functions.
I am using slider_plot function to do this. But I am unable to understand how I can associate the same 'unicontrol' function with all of them. What I want is that when I slide my slider, all the subplots should show the effect of change of variable value. One slider to control all the plots.
Can someone please help me with this.
Thank you.
  1 件のコメント
Jan
Jan 2017 年 3 月 12 日
編集済み: Jan 2017 年 3 月 12 日
Please post, what "slider_plot" is. Letting the readers search is less efficient.

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

回答 (1 件)

Jan
Jan 2017 年 3 月 12 日
The slider uicontrol is not "associated" with the other objects magically, but the callback of this uicontrol can access all availables graphic objects directly. If "slider_plot" means this, thoe code is slightly confusing. It migth be easier to start with a standard slider and deliver all required axes handles as inputs or using the handles struct.

カテゴリ

Help Center および File ExchangeSubplots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by