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 Center および File ExchangeCell Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by