How to select specific string

4 views (last 30 days)
Md Mizanur Raihan
Md Mizanur Raihan on 2 Oct 2020
Answered: madhan ravi on 2 Oct 2020
Hi I am new to MATLAB. Would you pls help me out of how to select specific string?
730×1 cell array
I need to select 197701011 and the same of others raws of a column.
Rik on 2 Oct 2020
Even a loop with contains is probably an option (you could even hide the loop from sight with cellfun).

Sign in to comment.

Answers (1)

madhan ravi
madhan ravi on 2 Oct 2020
Wanted = cell_array(contains(cell_array, "197701011"))


Find more on Characters and Strings in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by