retrieve version inside AppDesigner appplication (.mlapp file)

15 visualizaciones (últimos 30 días)
Han Geerligs
Han Geerligs el 27 de Mayo de 2024
Comentada: Han Geerligs el 29 de Mayo de 2024
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.

Respuestas (1)

Image Analyst
Image Analyst el 27 de Mayo de 2024
Editada: Image Analyst el 27 de Mayo de 2024
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 comentarios
Image Analyst
Image Analyst el 28 de Mayo de 2024
Editada: Image Analyst el 28 de Mayo de 2024
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.
Han Geerligs
Han Geerligs el 29 de Mayo de 2024
thanks for posting the utility.
I have used the example on https://nl.mathworks.com/help/matlab/ref/xmlread.html. However this has some identical code as xml2struct.m!

Iniciar sesión para comentar.

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by