Is there a uniquetol for tables?

4 views (last 30 days)
Krystian
Krystian on 8 Mar 2021
Commented: Rik on 8 Mar 2021
Is there a function working just like uniquetol which accepts tables as input argument?
  3 Comments
Krystian
Krystian on 8 Mar 2021
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 on 8 Mar 2021
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.

Sign in to comment.

Answers (0)

Tags

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!