Find and replace array elements that meet a condition
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Phoebe Armitage
il 15 Nov 2020
Commentato: Ameer Hamza
il 15 Nov 2020
I have an array
I have alreay found values in that array the equal 360 and replaced them with 0.
My question is, how do I then find values greater than 360 and replace them with 'that value - 360' ?
0 Commenti
Risposta accettata
Ameer Hamza
il 15 Nov 2020
You need to replace the value, just use rem()
x = 0:1000;
y = rem(x, 360)
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Operators and Elementary Operations 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!