How to replace the "files required for your application to run" in app designer

19 次查看(过去 30 天)
I am making an app using App Designer and making it to an .exe file with matlab compiler.
And there is a .mat data file that is needed to run the program, so I added that data at the "files required for your application to run".
So while I run the program, I can call that data by using " load('file_name.mat'); " and it has no problem.
But what I want to do is that I want to add more data at the 'file_name.mat'. I can't find any way to access to that file for an update.
I want to load 'file_name.mat' and update it and save it to 'file_name.mat' so that I can use the updated data when I reload it.
If there is no way, I am actually planing to load the data using "uiload" instead of putting the data to the "files required for your application to run",
but it would be very helpful if there is a way.

采纳的回答

Dennis
Dennis 2019-5-16
Yes, this can be done. There is a really good blog post about this topic, which can be found here.
As stated in the blog you can use 'which' to locate your file, then you can use the path to edit it.

更多回答(0 个)

类别

Help CenterFile 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!

Translated by