I have a bunch of matrices of the same size m*n: a, b, c, d
, and I'd like to find the maximum of them elementwise, like:
mx = max(a, max(b, max(c, d)));
apparently the code above is not concise enough, I've googled and didn't find much help about max
on N matrices, or any matlab function like python's reduce
. I haven't learned much about matlab, so is there one?