Remove zeros from all columns of a 3d matrix
    3 次查看(过去 30 天)
  
       显示 更早的评论
    
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
      
      
 2017-9-19
				And replace them with what? What should be done to ensure that the resulting array is still 3D-rectangular?
  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 Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

