removing repeated values from an array
Mostra commenti meno recenti
Suppose I have an array [1.2 8 89 1.2 4 8 32 1.2]. Is there any MATLAB function that gives me the array without repeated values: [1.2 8 89 4 32]?!
Risposta accettata
Più risposte (1)
Image Analyst
il 14 Set 2013
Try this:
m = [1.2 8 89 1.2 4 8 32 1.2]
mu = unique(m, 'stable')
1 Commento
Ibehma01
il 14 Set 2013
Categorie
Scopri di più su Shifting and Sorting Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!