How to delete multiple of the Value in Array
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Med Future
am 20 Dez. 2022
Kommentiert: Rik
am 29 Dez. 2022
Hello, I have the following array I want to delete the values, which are multiple of any values
How can i do that in MATLAB
1 Kommentar
Rik
am 29 Dez. 2022
Why did you post a duplicate question instead of responding that this isn't what you wanted?
Akzeptierte Antwort
Chetan Bhavsar
am 20 Dez. 2022
A = [1 2 3 4 5 6 7 8 9 10] % Initial array
A(mod(A,3) == 0) = [] % Delete elements that are multiples of 3
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices 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!