Is there a uniquetol for tables?

조회 수: 3 (최근 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