string in excel file

1 visualización (últimos 30 días)
Davindra Usov
Davindra Usov el 20 de Jun. de 2022
Comentada: Davindra Usov el 21 de Jun. de 2022
Hi,
How can I find out if a certain word, e.g. 'oranges' is contained within an excel sheet? I can't use ismember as for some reason, the string has to be stored in a vector.
Thanks :)

Respuestas (1)

Image Analyst
Image Analyst el 21 de Jun. de 2022
Not sure why you can't use ismember. Did you try readcell, strfind, and contains?
  4 comentarios
Davindra Usov
Davindra Usov el 21 de Jun. de 2022
Hi,
So i've managed to fix it my converting the table to an array. Then used 'find' to locate the indices. However, I'm now stuck on using readtable to read in an excel file with multiple sheets. I can't attach my code as it's confidental. The amount of info I've given is what's allowed but I can't send the code itself :(
Davindra Usov
Davindra Usov el 21 de Jun. de 2022
Also, thank you very much for your response

Iniciar sesión para comentar.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by