HELLO , I HAVE 4 PUSHBUTTONS IN GUI OF MATLAB. I WANT TO VALIDATE THE BUTTON ON CLICKING THAT MEANS IF BUTTON 1 IS NOT CLICKED WE CANT CLICK BVUTTON 2. IT WILL SHOW THE MESSAGE PLEASE CLICK BUTTON 1 IF WE DIRECTLY CLICK ON BUTTON 2.

1 view (last 30 days)
I HAVE 4 PUSHBUTTONS IN GUI OF MATLAB. I WANT TO VALIDATE THE BUTTON ON CLICKING THAT MEANS IF BUTTON 1 IS NOT CLICKED WE CAN NOT CLICK BVUTTON 2. IT WILL SHOW THE MESSAGE PLEASE CLICK BUTTON 1 IF WE DIRECTLY CLICK ON BUTTON 2.
  2 Comments
B.k Sumedha
B.k Sumedha on 21 Jul 2015
You can use another alternative.In the button1 callback function u can set the visibility true/false for button2.
As soon as the button1 is clicked you can display the button2.

Sign in to comment.

Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!