Info

This question is closed. Reopen it to edit or answer.

how to figure out if there exists duplicated rows in a cell?

1 view (last 30 days)
I'm generating a cell array like this,
216 46 0.503045247761871
190 49 3.58273130505241,
every time I put new data in this cell, I need to verify if it's a duplicated one,
such as, I get 190 49 3.58273130505241 again, which is a duplicated one, so I need to move on and generate another data.
I want to get a value Flag,
if the new data I want to put into the cell array is duplicated, then Flag =1,
else Flag =0.
  3 Comments
Walter Roberson
Walter Roberson on 29 Apr 2019
Is it a cell array in which each cell entry contains one numeric row? Is it a cell array in which each cell entry contains a varying number of numeric rows and you want to look through all of the entries?

Answers (0)

Community Treasure Hunt

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

Start Hunting!