Using get() with ui handles?

2 visualizaciones (últimos 30 días)
Keith Lewis
Keith Lewis el 10 de Feb. de 2017
Comentada: Jan el 12 de Feb. de 2017
I want to do something like this:
function simulationDataMatrix = createSimulationDataMatrix(handles,DataName,noOfSimulations)
if get(handles.radiobutton(DataName)Constant,'Value') == 0
...
...
The script will be for fetching and catching exceptions from user inputted data from the UI.
How can I achieve something like this?
Thanks!

Respuesta aceptada

Jan
Jan el 11 de Feb. de 2017
It depends on what "DataName" and "Constant" means. If I dare to guess, they might be strings. Then:
if get(handles.(['radiobutton', DataName, 'Constant']), 'Value')
  2 comentarios
Keith Lewis
Keith Lewis el 12 de Feb. de 2017
Exactly, thankyou!
Jan
Jan el 12 de Feb. de 2017
You are welcome. This was a good guess :-)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by