Using get() with ui handles?

11 次查看(过去 30 天)
Keith Lewis
Keith Lewis 2017-2-10
评论: Jan 2017-2-12
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
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 个评论
Jan
Jan 2017-2-12
You are welcome. This was a good guess :-)

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by