how to switch the value of a boolean.
Mostrar comentarios más antiguos
Hi, is there any function to do the following :
a = true;
b = someFunction(a)
==> b = false
b = sumeFunction(b)
==> b = true;
thank you.
Respuesta aceptada
Más respuestas (1)
James Tursa
el 7 de Sept. de 2012
b = ~a;
c = ~b;
Categorías
Más información sobre Simulink 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!