How do you launch a main .m file with a GUI push button?

1 次查看(过去 30 天)
I am trying to link a main .m file (Research.m) with a GUI built with GUIDE. The user will browse their computer for a filename. Once the filename is selected, I want to use that filename in the main .m file. How can I link these? Do I use assignin?
  1 个评论
OCDER
OCDER 2018-7-5
Can you upload the Research.m file? Does it take an input for filename? Ex:
%Research.m
function out = Research(filename)
...
end
Don't use assignin as you'll run into debug nightmares later on.

请先登录,再进行评论。

回答(0 个)

类别

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

标签

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by