How do I compare Cell to another Cell?

So I have to do this task where I pull letters(Grades, in this context) from an excel file and compare another 100 rows to that one row, and check which letters match to the first row of letters(the Answer Key). If the other rows and columns have the same value, it has to display as right or wrong(1,0), then I have to figure out How many questions each person got right, compared to the first row. I've tried multiple things, such as strcmp and cellfun and char, I've read the file in Matlab, but I can't seem to compare these certain letters to the other letters. Any Help is Appreciated.

2 commentaires

per isakson
per isakson le 4 Nov 2017
  • ismember
  • a tiny example would help us understand
Stephen23
Stephen23 le 4 Nov 2017
A very neat way to compare variables:
If you need to do this programmatically, then you need to give examples and be much clearer with specifying what inputs and outputs you require.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by