How to find strings in an excel file?

4 Ansichten (letzte 30 Tage)
Diana
Diana am 8 Apr. 2013
I want to find all colons in an excel file
colons = findstr(char, ':');
colons shows up empty. why is that?
  1 Kommentar
Yao Li
Yao Li am 8 Apr. 2013
Have you loaded the data from Excel file to matlab?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Diana
Diana am 9 Apr. 2013
Thanks for your reply
Yes, I did.
I also tried
colons = findstr(string, ':');
Any idea of what could be wrong?
  4 Kommentare
Yao Li
Yao Li am 11 Apr. 2013
sorry, I think it is not good to use string as the name of the variable.
find(strcmp(':',text_load_from_Excel ))
text_load_from_Excel is a cell type variable loaded from the Excel file
Diana
Diana am 15 Apr. 2013
No worries. Can you explain to me what a cell type variable is?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by