Calling .m file in app designer that will need to call another .m file to execute the code
59 ビュー (過去 30 日間)
I have a .m file (FILE 1) that calls a function. The function is written in another .m file(FILE). How do i press a button in GUI and run the FILE 1 which will eventually have to call FILE2 to be able to show an output in App Designer. I am a beginner in matlab app desiger and i am having trouble just executing the code.
Cris LaPierre 2021 年 11 月 4 日
You can execute m-files by calling them by their name in your code. To ensure your app can find the scripts, either place them in the same folder as your app, of add the folder they are in to your MATLAB Path.
See this answer for a related example.