compare two datasets of unequal length and create a textfile
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Matt Kindig
2013-4-22
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.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Export 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!