Extracting common-date data from different excel dates in separate excel workbooks

조회 수: 1 (최근 30일)
b
b 2014년 11월 14일
댓글: Geoff Hayes 2014년 11월 14일
Hello,
I have 2 excel workbooks with the following date-data:
Workbook1:
Date Data
11/14/2014 1.1
11/13/2014 1.2
11/12/2014 1.3
Workbook2:
11/14/2014 2.1
11/12/2014 2.2
11/11/2014 2.3
The problem is to extract and plot only the data of the two series corresponding to the common dates. In the above simple example, it will be to plot date vs data for the 1st and 3rd rows of workbook1 (since there is no data for 11/13/2014 in workbook2); and 'hold on', and on the same figure, plot date vs data for the 1st and 2nd rows of workbook2 (since there is no data for 11/11/2014 in workbook1). The plot will contain two date-points on the x-axis (11/14/2014 and 11/12/2014) and two data series - Workbook1Data (1.1 and 1.3) and Workbook2Data (2.1 and 2.2). How to achieve this in MATLAB?
Thanks.
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2014년 11월 14일
Have you been able to read in the two sets of data with xlsread? Start with that and then consider how you might merge the two data sets together for those with common dates.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by