Replace array elemtens, that match the condition
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alexander Donner
am 28 Jan. 2018
Kommentiert: Alexander Donner
am 1 Feb. 2018
Hey guys,
I have an array with x= 1:1:100; and i want to replace every element that is <= than 10 with 0.
My thought was to us the "if" function under an "for" loop, but i dont realy know how to do that.
i hope you guys can help me with that.
Thanks in advance.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements 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!