Borrar filtros
Borrar filtros

Using one save button(push button) instead of two?

2 visualizaciones (últimos 30 días)
Huseyin
Huseyin el 1 de Mzo. de 2014
Comentada: Huseyin el 1 de Mzo. de 2014
Hi,
I'm using "two push buttons" to run two independent functions. Let's say one for "process1" and for the other one "process2". If "process1" works, "process2" doesn't work and if "process2" works, "process1" doesn't work. Thats OK and what I want. Then I want to save the output which is done/worked succesfully by using ONE push button (save button). Lets say the output of process1 is "mat1" and the output of the other process is "mat2" I tried to use some "if" commands but it didn't work. Is it possible to do that with one push button or do I have to do this with 2 buttons for each process?

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 1 de Mzo. de 2014
Have you tried a toggle button?
  5 comentarios
Azzi Abdelmalek
Azzi Abdelmalek el 1 de Mzo. de 2014
guidata(hObject,handles)
update handles, you can use its content in other functions by
v=handles.process
Huseyin
Huseyin el 1 de Mzo. de 2014
Thanks a lot

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by