mlapp won't open (2017b)
3 次查看(过去 30 天)
显示 更早的评论
i am in the process of making an app using app designer. everything was fine. i quit matlab. next day, app designer will not open it, and there is no prj file in the directory. the app itself works fine when double clicked. But as it's not finished and i need to keep editing it, I need to be able edit it. at the very least, i need to get inside and see the code so that if I have to start over it doesn't have to be totally from scratch. i originally created it in 2017b. I have since updates to 2018a, but no help. the only difference it the error message when it won't open.
回答(6 个)
Kojiro Saito
2018-4-11
Your mlapp file seems to be corrupted.
It's not documented work flow, but you can copy your mlapp file, rename it as a zip file and extract the zip. In matlab\document.xml, there are scripts which you've written in Code View of App Designer. You can edit this document.xml and compress the whole folder as a zip and rename it as mlapp file.
1 个评论
Hank
2018-9-24
Kojiro, I've had a similar issue to Adam, in AppDesigner R2018a. My error message said 'Dot indexing is not allowed for variables of this type'. These both sound like standard syntax errors. It seems outrageous that app designer would refuse to open just because I haven't caught all my mistakes yet.
I was forced to rewrite the whole script, fortunately with the guidance of the code in document.xml.
By the way, I attempted copying the script from document.xml into my own m file. Again, I know this is undocumented, but when I run the app code, it complains the the method :all: is not implemented. Why does this occur and do you know a way around it?
adam phillips
2018-4-13
1 个评论
RAPHAEL FELIPE GAMA RIBEIRO
2018-6-9
I am having a similar issue, can you please tell me if the proposed solution worked ok? Thanks
Raghu S
2018-7-27
Hey, I am facing the same issue and followed the same procedure. But, even after that getting the same error. Is der any possibility that app designer layer can be reconstructed from the code extracted from .xml?
0 个评论
Michael
2019-9-25
This is a good thread. It is very disturbing that the MLAPP file can become corrupted but it is very helpful to know that the file is just a ZIP file and matlab\document.xml can be extracted and the code can be saved and pasted into a backup MLAPP file to recover some of the project.
It would be helpful if The Mathworks had an autosave feature to protect against this stort of very frustrating problem.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 App Designer を使用したアプリ開発 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!