Accessing data from a .m file used in an app
이전 댓글 표시
I have an app I created using appdesigner and then there are some subclasses which are saved as .m files. For every m file, I have set a version number like this
% versioninfo = 1.0.0
I have set it as a command and in the main program i read the .m file using fireread and look for versioninfo in the output text. So I created all this and I ran the .mlapp to see if it is working, and yes it is working. Then I changed in the .mfile
% versioninfo = 1.0.1
and ran the .mlapp again and this time also it worked perfectly fine.
Next I created a MATLAB app using share and then installing the app into MATLAB app ( i dont have a compiler license - so not standalone app). Then I ran the app first with % versioninfo = 1.0.0 and it worked because when I created the app it was % versioninfo = 1.0.0 in all . mfiles.
Then I changed one of the mfile to
% versioninfo = 1.0.1
but it didnt do any change in the app. So let me understand this correct. When the program creates app it includes all the .mfiles in the app itself. I thought app will be just the .mlapp file and when we run the app it will go and call the .m files from the directory. This is what I thought which is wrong. So all the .mfiles will be included in the app. And we change something in the .mfile we will need to create and reinstall the app again. This is how it works right? I just want to confirm. Thank you.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!