Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to call/run a .m file by selecting a menu bar item from main .m file

1 次查看(过去 30 天)
I'm new in MatLab and I'm designing a tool kit of different functions (each in a .m file) and I designed a main .m file ( and .fig file) with different menu bar items. I'd like to execute any function that I created by selecting it from the menu bar. Please help

回答(1 个)

KL
KL 2017-12-4
use its callback
m = uimenu;
m.Text = 'myFunction';
m.Callback = @myFunction;

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by