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!

 Akzeptierte Antwort

Jan
Jan am 11 Feb. 2017

0 Stimmen

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 Kommentare

Keith Lewis
Keith Lewis am 12 Feb. 2017
Exactly, thankyou!
Jan
Jan am 12 Feb. 2017
You are welcome. This was a good guess :-)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 10 Feb. 2017

Kommentiert:

Jan
am 12 Feb. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by