Is there a uniquetol for tables?

4 visualizaciones (últimos 30 días)
Krystian
Krystian el 8 de Mzo. de 2021
Comentada: Rik el 8 de Mzo. de 2021
Is there a function working just like uniquetol which accepts tables as input argument?
  3 comentarios
Krystian
Krystian el 8 de Mzo. de 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 el 8 de Mzo. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by