Remove Zeros Matrix on 3D Matrix
古いコメントを表示
I have Matrix A twhich is a 3D matrix that contain zeros matrix, How to delete the zeros matrix?
here i attach the example of my matrix.

the result that i want is matrix A should be (2,3,3)
採用された回答
その他の回答 (1 件)
function main
val = rand(2,3,4)
val(:,:,3) = []
end
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!