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

4 vues (au cours des 30 derniers jours)
hedia gzr
hedia gzr le 24 Mai 2019
Commenté : hedia gzr le 27 Mai 2019
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 commentaire
Rik
Rik le 24 Mai 2019
What have you tried so far?
Hint: useful functions in this case include xlsread, fileread (and/or fopen, fread, and fclose), ismember, and xlswrite.

Connectez-vous pour commenter.

Réponse acceptée

KSSV
KSSV le 24 Mai 2019
  1. Load bot the data into MATLAB using xlsread.
  2. Get the common strings using ismemebr, contains

Plus de réponses (0)

Catégories

En savoir plus sur Standard File Formats dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by