How to get common sub string in cell array string?
Mostra commenti meno recenti
Example:
cell_arr =
3×1 cell array
{'A.A1.A11.A111' }
{'A.A1.A12.A121' }
{'Event_State.Chart.A.A1.A12'}
How to get output = A.A1 ?
Risposta accettata
Più risposte (1)
fund_cell = regexp(cell_arr , 'A.A1', 'match');
result = [fund_cell{:}]
1 Commento
galaxy
il 17 Mar 2020
Categorie
Scopri di più su Characters and Strings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!