Execute .m file using GUI
1 回表示 (過去 30 日間)
古いコメントを表示
I would like to run a .m file by using pushbutton in GUI, the .m file output is an array which is not loaded in the workspace. Is there anyway to execute .m file using GUI or to load the output.
Thanks, Arif
0 件のコメント
採用された回答
Fangjun Jiang
2011 年 10 月 19 日
Is your .m file a function or a script? You need to understand the difference. Functions and Scripts.
If it is a function, you can use output argument to pass in the data. If it is a script, you can run the .m file directly with the GUI function callback to set up the data, although this approach is not recommended.
4 件のコメント
Fangjun Jiang
2011 年 10 月 20 日
If you want to make Final_Array available in base workspace, run this at the end of the function.
assignin('base','Final_Array',Final_Array);
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!