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 CenterFile Exchange 中查找有关 Logical 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by