Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Preventing errors in order to use other buttons

Subject: Preventing errors in order to use other buttons

From: Sertan Kaya

Date: 18 Jan, 2009 00:22:02

Message: 1 of 2

 Dear All,

I have been doing a gui project in Matlab. In my project, there are several buttons which are engaged with specific tasks. In order to proceed the tasks, you have to click on buttons in a certain orders. Let's say, once you upload the image with "load image" button, you have to go with the next button so that this button can use the global variables from "load image_callback function". The way I did for this problem is enabled off all buttons except one button which is active at that time. Is there another way or better way to do this thing ? Let's say, once you have a gui, you can not start with any button. If you do that, it will give an error. Is there any way that we can get rid of this error ?

Thanks for your time and help
Best Regard
Phd Student

Subject: Preventing errors in order to use other buttons

From: Sadik

Date: 18 Jan, 2009 00:55:04

Message: 2 of 2

"Sertan Kaya" <sertan_kaya@yahoo.com> wrote in message <gktsna$ord$1@fred.mathworks.com>...
> Dear All,
>
> I have been doing a gui project in Matlab. In my project, there are several buttons which are engaged with specific tasks. In order to proceed the tasks, you have to click on buttons in a certain orders. Let's say, once you upload the image with "load image" button, you have to go with the next button so that this button can use the global variables from "load image_callback function". The way I did for this problem is enabled off all buttons except one button which is active at that time. Is there another way or better way to do this thing ? Let's say, once you have a gui, you can not start with any button. If you do that, it will give an error. Is there any way that we can get rid of this error ?
>
> Thanks for your time and help
> Best Regard
> Phd Student

Dear Sertan,

I don't know exactly, but if it is the usage of the handles that necessitates the disabling of the buttons, then the following link, especially Section 7 could be useful:

http://www.mathworks.com/support/tech-notes/1200/1205.html

Thanks.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us