How to delete multiple of the Value in Array
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commento
Rik
il 29 Dic 2022
Why did you post a duplicate question instead of responding that this isn't what you wanted?
Risposta accettata
C B
il 20 Dic 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing 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!