Running a mlapp file from another mlapp file via pushbutton callback
15 ビュー (過去 30 日間)
古いコメントを表示
Hello, I have a mlapp file and want to run another one from a pushbutton.
Following the link below, I'm able to run my 2nd mapp file (ImageViewer.mlapp) by placing the name of the app in the pushbutton callback
i.e.
function TESTButtonPushed(app, event)
ImageViewer.mlapp
end
However, this requires I put the ImageViewer.mlapp file in the same director as my first mlapp file which I don't want to do. So my question is, how do I run a 2nd mlapp file but thats in a different directory.
Thanks
please note, I don't need to share data, so please dont just share links with how to do this (I have already read them!)
0 件のコメント
採用された回答
Adam Danz
2023 年 7 月 10 日
> how do I run a 2nd mlapp file but thats in a different directory?
Add the path to the 2nd app in the button callback or specify the mlapp file using the full path.
function TESTButtonPushed(app, event)
addpath(____)
ImageViewer.mlapp
end
or
function TESTButtonPushed(app, event)
\__fullpath__\ImageViewer.mlapp
end
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!