필터 지우기
필터 지우기

Find text in a variable which contains texts and numbers

조회 수: 1 (최근 30일)
Kelly Kyriakou
Kelly Kyriakou 2015년 11월 26일
댓글: Kelly Kyriakou 2016년 9월 20일
I read a csv file and store the data in a variable with the readtable command. This variable contains both text and numbers. How I could find the row of specific text?

채택된 답변

Image Analyst
Image Analyst 2015년 11월 26일
You could use ismember on the column of text, something like
loc = ismember(yourTable(:, 3), 'sometext');
if your text is in column 3. It will return the row the search text is in.
  댓글 수: 11
Walter Roberson
Walter Roberson 2015년 11월 27일
Kelly, does that mean that your problem is solved?

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by