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 Exchange에서 Programming에 대해 자세히 알아보기

태그

질문:

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