compare two datasets of unequal length and create a textfile

2 visualizzazioni (ultimi 30 giorni)
Hi I have two data sets (for two locations) containing following information:
Year Month Day Precipitation
One of the sets has 80 rows, the other 102
I should create a textfile which shows all the dates which occure in both data sets, hence I want a list of dates on which it rained on both locations. And I just don't know how to do that.
Thank you for your help

Risposta accettata

Matt Kindig
Matt Kindig il 22 Apr 2013
To read in the text files:
doc dlmread
To compare which dates occur in both files:
doc intersect
(The second output of intersect (i.e., the indices) may be helpful as well.

Più risposte (0)

Categorie

Scopri di più su Weather and Atmospheric Science in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by