Unrecognized method, property, or field 'Value' for class 'matlab.ui.control.Button'.
Mostrar comentarios más antiguos
function StartButtonPushed(app, event)
app.modelEditField.Value = bdroot(gcs);
if app.StartButton.Value == 1
app.PauseButton.Value = 0;
app.ContinueButton.Value = 0;
app.StopButton.Value = 0;
end
set_param(app.modelEditField.Value,'SimulationCommand','start');
end
This is my ButtonPushed Function and I think that " app.StartButton.Value == 1 " mean pressed
But when I simulate this
"Unrecognized method, property, or field 'Value' for class 'matlab.ui.control.Button'."
error occured.
Why this error occured..?
Respuesta aceptada
Más respuestas (1)
Mario Malic
el 18 de Sept. de 2023
1 voto
Correct property that you are looking for is Enabled, instead of Value.
Categorías
Más información sobre Desktop en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!