Hi, I am working with a loop to compare excel files in a folder (each excel with the one next to it).The comparison is based on: for each row (Row1) in excel1, ONE row in excel2 is selected when each column number is in a certain range (0.7-1.1 times of that in the same column value in Row1. If there are more than 1 rows selected in excel2, then the row with smallest std (shortest distance to Row1) is selected. Can anyone help me?

댓글 수: 1

Jan
Jan 2018년 3월 2일
What is the question? The forum can help you, so please post what you have tried so far and ask a specific question.
What is an "Excel file next to it"?

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

 채택된 답변

Sujit Muduli
Sujit Muduli 2018년 3월 6일

0 개 추천

Hi Tian,
As I understand from your questions you just want to iterate over the rows for two excel files and make the comparison.You may read the excel data as a table and write a function for your logic. You may find the links below useful,

댓글 수: 1

Tian Tian
Tian Tian 2018년 3월 6일
Thank you for your answer! Yes I tried reading data as table and it works. My problem has been solved.

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

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

질문:

2018년 3월 2일

댓글:

2018년 3월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by