how to connect existing matlab code (.m) file with app designer in matlab?
70 次查看(过去 30 天)
显示 更早的评论
Hello sirs,
I am new in app designers in matlab. i would like to see the results in app designer from my existing program (.m) file. how can i do interact with those 2 file .m) file and with app designer pls?
1 个评论
Rik
2023-5-17
If your m file is a function, you can simply call it like any other function. If it is a script you should first change that.
回答(1 个)
Mrinal Anand
2023-7-8
As Rik mentioned, you can simply call functions from .m files in the App Designer callbacks/functions. Ensure that the App Designer file (.mlapp) and the .m files are in the same folder, if you want to call the functions directly. Otherwise, you would probably have to specify the file path.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!