필터 지우기
필터 지우기

MATCHING EXCEL FILES USING MATLAB

조회 수: 4 (최근 30일)
Saptorshee Chakraborty
Saptorshee Chakraborty 2021년 3월 31일
답변: Cris LaPierre 2021년 12월 24일
Hello,
I would like to match two seperate sheets containing EU-ETS installations (ID) location and emission details (ED) of such installations. Both the ID file and ED file contains unique identification code PERMIT_ID. The problem is there are more than 15,000 entries for ID and more than 12,000 entries for ED, I want to match both the files and find the locations for installations in the ED file, I know the only way is to use by PERMIT_ID, but I cannot figure out the command. . I have checked in excel both the files have more than 10,000 common entries. I also do not want to discard the extra 2,000 in the ED file.
The columns look as the screenshot pasted below. I would really appreciate if you can suggest me a way.
  댓글 수: 4
darova
darova 2021년 3월 31일
You can use interp1 to make data the same size
Voss
Voss 2021년 12월 23일
Sounds like ismember would be useful.

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

답변 (1개)

Cris LaPierre
Cris LaPierre 2021년 12월 24일
Load both files using readtable, then merge the tables using join.
If you are new to joining tables, I recommend using the Join Tables live task in the live editor (see here)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by