Unique an Array based on one of the columns
Show older comments
I have a table bellow with more than 1000 rows:
The table has six columns. I want to remove the repeated rows with consideration of "Email" column. In another hand, if ithe eamil presents in one row is the same as the email presents in another row, just keep one of these repeated rows (I prefer to keep the last row). How can I do this?
4 Comments
Image Analyst
on 29 Apr 2023
That's not the attachment we need. We need a .mat file with your variable inside it.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
civil tech
on 29 Apr 2023
Walter Roberson
on 29 Apr 2023
splitapply(@unique ) with the group determined by the email column (might need findgroups)
civil tech
on 29 Apr 2023
Moved: Walter Roberson
on 29 Apr 2023
Accepted Answer
More Answers (0)
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!