is there any idea on how to compare an .xls file and .csv file?

2 ビュー (過去 30 日間)
hedia gzr
hedia gzr 2019 年 5 月 24 日
コメント済み: hedia gzr 2019 年 5 月 27 日
Hello,
I'm trying to compare two files, .xls(screenshot1) and .csv(screenshot2). It should verify that every word contained on .csv is present on .xls file. and write in column B (of File1) OK if the word exist in both files.
I am a beginner in matlab, any help would be much appreciated.
Thanks!
  1 件のコメント
Rik
Rik 2019 年 5 月 24 日
What have you tried so far?
Hint: useful functions in this case include xlsread, fileread (and/or fopen, fread, and fclose), ismember, and xlswrite.

サインインしてコメントする。

採用された回答

KSSV
KSSV 2019 年 5 月 24 日
  1. Load bot the data into MATLAB using xlsread.
  2. Get the common strings using ismemebr, contains

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStandard File Formats についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by