How can use one callback function for multiple objects in uicontrol formatting of gui not guide formatting?
조회 수: 1 (최근 30일)
이전 댓글 표시
I create two popup menu in my function using uicontrol and now I want this two objects have just one callback function that works with some arguments.How can use one callback function for multiple objects in uicontrol formatting of gui not guide formatting? I search about my question but answers were found just about GUIDE not UI programing.
댓글 수: 1
Adam
2015년 12월 4일
Do you know how to add a single callback programmatically? If so then you just add exactly the same call to both components. It is a lot easier than doing the same thing in GUIDE. As to working with arguments though you would have to give a concrete example to better understand what you are trying to do if this is not a solution.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!