delete a space blank in a cell array
조회 수: 8 (최근 30일)
이전 댓글 표시
Hi everyone, i have this cell " MTA-M-001" and i when i'm comparing it with "MTA-M-001" i get a logical 0 so i want to get rid of the space blank
댓글 수: 0
채택된 답변
vijaya lakshmi
2018년 3월 22일
Hi Skander,
strtrim(" MTA-M-001")
Alternatively, if u storing it as char,then use
c=' MTA-M-001'
c=c(~isspace(c))
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!