How do I compare Cell to another Cell?
Mostrar comentarios más antiguos
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 comentarios
per isakson
el 4 de Nov. de 2017
- ismember
- a tiny example would help us understand
Stephen23
el 4 de Nov. de 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.
Respuestas (0)
Categorías
Más información sobre Characters and Strings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!