Tabulate shortens array. Why?

1 vue (au cours des 30 derniers jours)
Pete Ronklis
Pete Ronklis le 9 Jan 2018
Modifié(e) : per isakson le 10 Jan 2018
I use tabulate command like this:
a = array(352360x1)
b = tabulate(a)
b = array *(19231x3)*
Why is B array shorter than A ? Thanks

Réponses (1)

Roger Stafford
Roger Stafford le 9 Jan 2018
Modifié(e) : Walter Roberson le 9 Jan 2018
The number of rows in the output of 'tabulate' is the number of unique values in the input, so there must have been 19231 unique values among the 352360 elements of your 'a' array. Read the description of 'tabulate' at:

Catégories

En savoir plus sur Operators and Elementary Operations dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by