Effacer les filtres
Effacer les filtres

do not know what operation to use.

2 vues (au cours des 30 derniers jours)
Neesha
Neesha le 28 Août 2014
Modifié(e) : Neesha le 28 Août 2014
I have two dataset as shown in attached file. Dataset1 and Dataset2.
Do some operation between thos two to get Dataset3.
so dataset3 is combination of pink rows from Dataset1 and purple rows from dataset2 as in both doble line bordered area is the same and see how green rows disappers.

Réponses (1)

ES
ES le 28 Août 2014
Modifié(e) : ES le 28 Août 2014
To me it appears like union of two tables. see here . Also I dont understand why dataset2 takes precedance over dataset1 when a data is present in both the datasets. If there is some logic/reason behind that, then you can proceed to use union.
  3 commentaires
ES
ES le 28 Août 2014
I was meaning union. Edited now. You seem to be on the right path with setdiff. What error do you get?
Neesha
Neesha le 28 Août 2014
Modifié(e) : Neesha le 28 Août 2014
I do not get an error if I do not use 'rows' (for some reason 'rows' never worked for me) but my resultant dataset is the same as Dataset1
union will have dats from both , that is not the goal .
If i can get setdiff(dataset1, dataset2 ) = rows in pink highlight. I can do rest

Connectez-vous pour commenter.

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by