expression that changes if a condition is true
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Valeria Leto
il 15 Mag 2020
Commentato: Ameer Hamza
il 15 Mag 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 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Loops and Conditional Statements in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!