retrieve version inside AppDesigner appplication (.mlapp file)
22 次查看(过去 30 天)
显示 更早的评论
Does anyone know how to retrieve (programmatically) the version inside an .mlapp file?
This property is available on top level of the GUI, in picture below it is 1.02. I'd like to display it in a text label in the app.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1704621/image.png)
0 个评论
回答(1 个)
Image Analyst
2024-5-27
编辑:Image Analyst
2024-5-27
Did you try
s = ver('MATLAB');
releaseYear = s.Release(2:end-1);
releaseVersion = s.Version;
fprintf('You are using MATLAB Release %s, version number %s.\n', releaseYear, releaseVersion);
app.yourTextBox.Value = releaseVersion;
5 个评论
Image Analyst
2024-5-28
编辑:Image Analyst
2024-5-28
You or others might find the attached utility useful. It reads an XML file into a structure, which is more familiar, convenient, and easy to use for most of us.
另请参阅
类别
在 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!