I’m new in Matlab but I really need to learn it. Hope it is very useful for my research.
Now I’m facing the following problem.
I have two images (named A and B). Both have 7 layers at the same dimension (4169,6289,7). First I’d like to find the layer that has a max value in A image and then look up a corresponding value in B image. For example: If fifth layer in A image has max value, I need the value of fifth layer in B image.
I just wrote this code c=max(a,[],3) to find the layer with max value in A image but no idea to set up to get corresponding value in B image. can you help me for this.
Thanks a lot
Here’s another take on it, that’s a bit more memory efficient: