expression that changes if a condition is true
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Valeria Leto
am 15 Mai 2020
Kommentiert: Ameer Hamza
am 15 Mai 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 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Types finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!