Replacing zeros with ones in a 3D array & accessing all 2D arrays of the 3d array diagonally from bottom centre to the top of 2d arrays
Show older comments
Hello there,
I have a large 3d array and I would like to replace all zeros values by other constant values. Could you advise how to perform this?
Also, I would like to access all elements of the 2d array of my 3d array starting from the bottom centre and then go diagonally to the top of the 2d arrays, then, jump to the upper row from the bottom centre of all 2d arrays and perform the same thing.
Could you also advise on how to perform this in Matlab?
Thanks in advance, MT
Accepted Answer
More Answers (0)
Categories
Find more on Operating on Diagonal Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!