How to subtract 3D matrix in matlab?

494 Views Asked by At

What is the correct way to subtract A ([a,b,c]=size (A)) from matrix B ([a,b,c]=size (B)) over the second dimension

something like: minus (A,B,2)?

Thanks in advance, karlo

p.s, probably it has a simple solution and i really confused! your help is very much appreciated