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

1 回表示 (過去 30 日間)
Austin Brehm
Austin Brehm 2018 年 7 月 5 日
コメント済み: OCDER 2018 年 7 月 5 日
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 Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by