expression that changes if a condition is true
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Valeria Leto
el 15 de Mayo de 2020
Comentada: Ameer Hamza
el 15 de Mayo de 2020
Hi! I know it's a silly question but I don't remember how to write an expression like that
theta=psi+pi*(condition:x<0)
and I want -theta=psi if the condition is false
-theta=psi+pi if the condition is true
thanks!
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements 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!