How can I create a function which create other functions?

조회 수: 1 (최근 30일)
Daniel Fonsêca
Daniel Fonsêca 2019년 1월 12일
댓글: Daniel Fonsêca 2019년 1월 13일
I'm using the GUIDE to create a program. I want to create a functions which create many callbacks to differents menu items.
Ex.:
menu item 1 --> callback 1
menu item 2 -->callback 2
menu item 3 --> callback 3
This callbacks came from the function which i created first.
  댓글 수: 4
Walter Roberson
Walter Roberson 2019년 1월 13일
get the Value property of the uicontrol style 'listbox' or 'popup' . You can also get the String property, and use the Value property to index into that, in order to obtain a copy of the line that the user chose.
Note: this response is for the case where "menu" is implemented by way of uicontrol. If you need menu implimented as uimenu objects, hooking into the toolbar just like "File" and "Edit" menus, then there are other approaches.
Daniel Fonsêca
Daniel Fonsêca 2019년 1월 13일
Thaks by the attention :)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by