Using get() with ui handles?

1 vue (au cours des 30 derniers jours)
Keith Lewis
Keith Lewis le 10 Fév 2017
Commenté : Jan le 12 Fév 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!

Réponse acceptée

Jan
Jan le 11 Fév 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 commentaires
Keith Lewis
Keith Lewis le 12 Fév 2017
Exactly, thankyou!
Jan
Jan le 12 Fév 2017
You are welcome. This was a good guess :-)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by