Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Can I use whether or not a function runs as a conditional statement?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I need some commands to execute if a pushbutton is pressed while certain other conditions are true. How can I write in a conditional statement "if y and z are true(conditions) and some function has run, then execute these commands" in coding form? This is in a GUI by the way if that helps.
0 comentarios
Respuestas (1)
elham kreem
el 8 de Mzo. de 2018
Editada: elham kreem
el 8 de Mzo. de 2018
this is a short example ; if the first condition is true :
x= 2 ; y = 3;
if (x+y)>4
disp x , disp y
else x-y
end
********************** now if the first condition is wrong :
if (x+y)> 5
disp x , disp y
else x-y
end
1 comentario
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!