Is there a uniquetol for tables?

4 ビュー (過去 30 日間)
Krystian
Krystian 2021 年 3 月 8 日
コメント済み: Rik 2021 年 3 月 8 日
Is there a function working just like uniquetol which accepts tables as input argument?
  3 件のコメント
Krystian
Krystian 2021 年 3 月 8 日
This question is related to my previous one.
https://de.mathworks.com/matlabcentral/answers/765261-problem-with-unique-on-table?s_tid=prof_contriblnk
The situation is like that:
tu =
11×4 table
Apex Left Right Type
_________ _______________ _______________ ____
0+3.0777i -1+0i 1+0i A
0+3.0777i 1+0i 2.618+1.1756i Ap
0+3.0777i -1+0i 1+0i A
0+3.0777i -2.618+1.1756i -1+0i Ap
0+3.0777i 2.618+1.1756i 3.2361+3.0777i A
0+3.0777i 3.2361+3.0777i 2.618+4.9798i Ap
0+3.0777i -3.2361+3.0777i -2.618+1.1756i A
0+3.0777i 2.618+4.9798i 1+6.1554i A
0+3.0777i -2.618+4.9798i -3.2361+3.0777i Ap
0+3.0777i 1+6.1554i -1+6.1554i Ap
0+3.0777i -1+6.1554i -2.618+4.9798i A
for me the t(1,:) is equal t(3,:) although unique distinguishes the small differences between Lefts....and Rights. Uniquetol which would allow to accept small differences does not accept tables, unfortunatelly.
Rik
Rik 2021 年 3 月 8 日
You could circumvent the problem in your case by encoding the type column as a scalar double as well, and convert the table to a matrix.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by