How to get common sub string in cell array string?
이전 댓글 표시
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 ?
채택된 답변
추가 답변 (1개)
fund_cell = regexp(cell_arr , 'A.A1', 'match');
result = [fund_cell{:}]
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!