delelte certain string data from cell
조회 수: 1 (최근 30일)
이전 댓글 표시
i want to delete Australia from this data using code
name= names (~any(cellfun('Australia',names),1:)
but i gives error so tell me an other way to del it
댓글 수: 0
채택된 답변
Star Strider
2021년 5월 29일
C = {'abc';'def';'ghi';'ghi';'ghi';'jkl';'mno';'pqr'}
TF = ismember(C,'ghi')
Cnew = C(~TF,:)
.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!