How to discretize?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Kunal Roy
il 19 Set 2016
Risposto: Sean de Wolski
il 19 Set 2016
Suppose I had 51,42,43,56,76,54,34,56,78,80 in a column how would I use discretize function to put the numbers between 50-59 into 50, and those between 60-69 into 60 and so on?
0 Commenti
Risposta accettata
Sean de Wolski
il 19 Set 2016
bins = 0:10:100;
x = [51,42,43,56,76,54,34,56,78,80]
newx = bins(discretize(x,bins))
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!