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!

 採用された回答

Jan
Jan 2017 年 2 月 11 日

0 投票

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 件のコメント

Keith Lewis
Keith Lewis 2017 年 2 月 12 日
Exactly, thankyou!
Jan
Jan 2017 年 2 月 12 日
You are welcome. This was a good guess :-)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

タグ

質問済み:

2017 年 2 月 10 日

コメント済み:

Jan
2017 年 2 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by