how to remove a column from a character matrix?
이전 댓글 표시
suppose
x= 1001
1001 (x is a character matrix)
i want y=100
100 (last column is removed)
채택된 답변
추가 답변 (1개)
Guillaume
2016년 12월 6일
You remove the last column of any matrix, regardless of what type of data it contains, even characters, the same way with:
yourmatrix(:, end) = [];
Unless what you call a character matrix is not a character matrix actually. A character matrix would be:
x = ['1001';'0110']; %for example
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!