how to remove the zero from the first column and last row (4,1) to make it empty. it change my all values by subtracting.
조회 수: 3 (최근 30일)
이전 댓글 표시
s=[1;2;3];
s(1:4,2)=[1;2;3;4]
s =
1 1
2 2
3 3
0 4
댓글 수: 0
채택된 답변
Bhaskar R
2019년 10월 28일
Not specified what subtraction operation here.
And you can't remove zero and put empty here this lead to non structure of the matrix. But you there are otherways to do that use cell array notations.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!