storage of parameters edit fields( numeric) in App designer
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Palma Errico
el 22 de Feb. de 2021
Comentada: Palma Errico
el 22 de Feb. de 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 comentarios
Respuesta aceptada
Mario Malic
el 22 de Feb. de 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
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!