Is function Unique described correctly in the documentation
古いコメントを表示
I ran a example of Unique given in the online 2013a documentations
A = [9 2 9 5]; [C, ia, ic] = unique(A)
The results given in the documentation is as follows: C =
2 5 9
ia =
2
4
1
ic =
3
1
3
2
But i got the different results for ia from my Matlab 2011a as follows ia =
2 4 3
Is the description in the documentation is correct or is it a bug in the code?
採用された回答
その他の回答 (1 件)
Shashank Prasanna
2013 年 8 月 27 日
0 投票
There are compatibility considerations for the UNIQUE function detailed here in the release notes:
Please make sure you read the relevant version's documentation as the cyclist mentioned.
カテゴリ
ヘルプ センター および File Exchange で Programming についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!