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 Comments

  • ismember
  • a tiny example would help us understand
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.

Sign in to comment.

Answers (0)

Categories

Asked:

on 4 Nov 2017

Commented:

on 4 Nov 2017

Community Treasure Hunt

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

Start Hunting!