Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
i have a big matrix with dimension 303*14 i want compare every row of this matrix with one vector with dimension 1*14
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
i have a big matrix with dimension 303*14 i want compare every row of this matrix with one vector with dimension 1*14 all of these are cell arrays and contain string
6 comentarios
Jan
el 22 de Dic. de 2013
In opposite to your question, the example data do not contain strings, but scalar numbers. This is confusing.
"Doesn't work" is not precise enough to offer a suggestion for improvements. Perhaps it is only a typo in "strcomp", which is written without "o"? Posting the error message would be more helpful.
Respuestas (1)
Wayne King
el 22 de Dic. de 2013
Editada: Wayne King
el 22 de Dic. de 2013
I'm not sure I understand, you say you have a cell array:
strcmp() does work element by element on a cell array.
A = {'This is a frog'; 'This is a chair'; 'This is a book'; 'This is a test'};
strcmp(A,'This is a test')
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!