matlab - How to avoid the multiple use of 'unique' to filter inconsitent datasets? -


I have two corresponded (one relation and one dimension) Dataset:

  1. time
  2. salinity

Some data is repeated in the time dataset.

I can remove the duplicate value as:

  Time_new = unique (time, 'rows');  

But this salinity will not be consistent with dataset.

How can I adjust similar lenant data?

Thanks

(from the adoption)

Use output arguments:

  [time_new, idx_un, ~] = unique (time, 'rows'); Celinity_nu = salinity (idx_un, :);  

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -