Remove zeros from all columns of a 3d matrix

조회 수: 2 (최근 30일)
Arvind Kumar Pathak
Arvind Kumar Pathak 2017년 9월 19일
댓글: Image Analyst 2017년 9월 19일
A matrix named 'T' is attached whose dimension is 3,3048, 1849.
I want to remove all the zeros from columns (3048).
can anyone help me.
  댓글 수: 2
Matt J
Matt J 2017년 9월 19일
And replace them with what? What should be done to ensure that the resulting array is still 3D-rectangular?
Image Analyst
Image Analyst 2017년 9월 19일
Nothing is attached. You can't remove zeros unless the zeros are in every location in the x-z planes. You can remove whole planes, but not individual elements because that would leave the edge "ragged" and the array would no longer be rectangular.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by