delete rows in 3d-matrix
이전 댓글 표시
Hi all,
How can I delete a row in a 3d matrix? I want to delete the upper row in the matrices: stuff(:,:,1:3)
stuff(:,:,1(:,1))=[]
doesn't work..
"Unbalanced or unexpected parenthesis or bracket."
Does anyone know the answer? Thanks.
Cheers,
T
댓글 수: 2
Jan
2012년 11월 7일
What exactly is "the upper row"?
Image Analyst
2012년 11월 7일
Not sure what you mean. In 3D people talk about a "slice" or a "plane" not a row. You can't eliminate just row 1 of slices 1, 2, and 3 because then the array is no longer rectangular - it would have a notch or chunk out of it. But you can get rid of a whole slice at a time.
채택된 답변
추가 답변 (1개)
Jan
2012년 11월 7일
stuff(:, :, 1) = []
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!