How to select specific string

5 visualizzazioni (ultimi 30 giorni)
Md Mizanur Raihan
Md Mizanur Raihan il 2 Ott 2020
Risposto: madhan ravi il 2 Ott 2020
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 Commenti
Ankit
Ankit il 2 Ott 2020
There are may options try to read below just for an example.
otherpossibilites: extractBefore, split etc
Rik
Rik il 2 Ott 2020
Even a loop with contains is probably an option (you could even hide the loop from sight with cellfun).

Accedi per commentare.

Risposte (1)

madhan ravi
madhan ravi il 2 Ott 2020
Wanted = cell_array(contains(cell_array, "197701011"))

Categorie

Scopri di più su Cell Arrays in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by