storage of parameters edit fields( numeric) in App designer
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Palma Errico
il 22 Feb 2021
Commentato: Palma Errico
il 22 Feb 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 Commenti
Risposta accettata
Mario Malic
il 22 Feb 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
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!