remove the empty zero value layers in multidimensional matrix
显示 更早的评论
Let's say. I have nD array of any size and dimensions.
How can I get delete zeros layers?
Thanks
3 个评论
James Tursa
2019-2-13
Please provide a short example of input and desired output. Are you trying to delete 2D pages that consist of entirely 0's, or what? The example will clarify.
sveta sveta
2019-2-13
James Tursa
2019-2-14
编辑:James Tursa
2019-2-14
You didn't provide an example. From your description, the 2D layer could be along any dimension?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!