storage of parameters edit fields( numeric) in App designer
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Palma Errico
le 22 Fév 2021
Commenté : Palma Errico
le 22 Fév 2021
I have a file where I have stored numeric parameters ('parameters.mat').
My app needs to read the parameters from the 'parameters.mat' file and must associate them with some edit fields (numeric) of App designer .
How can i do this?
0 commentaires
Réponse acceptée
Mario Malic
le 22 Fév 2021
Hello again,
function startupFcn(app)
data = load('parameters.mat');
% data is a struct with fields named by variables in your file
app.EditField.Value = data.VariableName;
end
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!