- one of the arrays is scalar size for that dimension
- both of the arrays have the same size for that dimension.
- create a logical mask and remove the elements after the loop,
- loop over the elements backwards.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!