How to select specific string

조회 수: 6 (최근 30일)
Md Mizanur Raihan
Md Mizanur Raihan 2020년 10월 2일
답변: madhan ravi 2020년 10월 2일
Hi I am new to MATLAB. Would you pls help me out of how to select specific string?
730×1 cell array
{''188RICHARD''197701011''}
{''188RICHARD''197701012''}
{''188RICHARD''197701021''}
{''188RICHARD''197701022''}
I need to select 197701011 and the same of others raws of a column.
  댓글 수: 2
Ankit
Ankit 2020년 10월 2일
There are may options try to read below just for an example.
otherpossibilites: extractBefore, split etc
Rik
Rik 2020년 10월 2일
Even a loop with contains is probably an option (you could even hide the loop from sight with cellfun).

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

답변 (1개)

madhan ravi
madhan ravi 2020년 10월 2일
Wanted = cell_array(contains(cell_array, "197701011"))

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by