How to find strings in an excel file?

조회 수: 9 (최근 30일)
Diana
Diana 2013년 4월 8일
I want to find all colons in an excel file
colons = findstr(char, ':');
colons shows up empty. why is that?
  댓글 수: 1
Yao Li
Yao Li 2013년 4월 8일
Have you loaded the data from Excel file to matlab?

댓글을 달려면 로그인하십시오.

채택된 답변

Diana
Diana 2013년 4월 9일
Thanks for your reply
Yes, I did.
I also tried
colons = findstr(string, ':');
Any idea of what could be wrong?
  댓글 수: 4
Yao Li
Yao Li 2013년 4월 11일
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 2013년 4월 15일
No worries. Can you explain to me what a cell type variable is?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by