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 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