Tabulate shortens array. Why?

조회 수: 5 (최근 30일)
Pete Ronklis
Pete Ronklis 2018년 1월 9일
편집: per isakson 2018년 1월 10일
I use tabulate command like this:
a = array(352360x1)
b = tabulate(a)
b = array *(19231x3)*
Why is B array shorter than A ? Thanks

답변 (1개)

Roger Stafford
Roger Stafford 2018년 1월 9일
편집: Walter Roberson 2018년 1월 9일
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:

카테고리

Help CenterFile Exchange에서 Discrete Multiresolution Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by