Unique function for tall tables

3 次查看(过去 30 天)
R
R 2022-6-2
评论: dpb 2022-6-2
I want to filter my tall timetable and only keep values the first value where the timestamp is unique but MATLAB says I can not do that with tall tables.
Is there another way to go about this?
  2 个评论
Rik
Rik 2022-6-2
You could use a loop, keeping a shadow copy of all timestamps so far, keeping only the first.
The performance will not be great. It may still be good enough if you use a logical vector to mark deletions and remove unwanted rows in one go.
dpb
dpb 2022-6-2
I've not messed w/ the tall table stuff, but I'd think retime could do that for you...the limitations mentioned don't seem to prohibit it.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by