フィルターのクリア

How to auto run the slider using a button?

6 ビュー (過去 30 日間)
Lavanya
Lavanya 2022 年 6 月 8 日
編集済み: Lavanya 2022 年 6 月 8 日
I have enclosed the example code. Here I am using the slider to see the slice images. But I wanted to add a button in app designer so that the Slider can move automatically with the images. Kindly suggest your ideas to implement this functionality in GUI?

回答 (1 件)

Jan
Jan 2022 年 6 月 8 日
The shown code creates a figure programmatically. Using the AppDesigner would be useful to insert an element in a uifigure , which was created by AppDesigner.
Simply insert the button by a uicintrol('Style', 'ToggleButton') command as the other controls in this code. It is not clear to me, what "so that the Slider can move automatically with the images" means, but this is implemented in the callback of the button.
  1 件のコメント
Lavanya
Lavanya 2022 年 6 月 8 日
編集済み: Lavanya 2022 年 6 月 8 日
Actually this is not the code, this is the example for the reference.
Example: (Here I am enclosing the another example. When we use slider it changes the images. I wanted to insert a button that can automatically move the slider.)
I have created GUI which has slider . When Slider moves manually it will show images from the folder. But now I wanted to add a pushbutton which can automate the slider function. Can you give some idea for this?

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

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by