Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Findind NxN max values in a (NxNx8) 3d array

Subject: Findind NxN max values in a (NxNx8) 3d array

From: Francisco Seixas

Date: 17 Apr, 2013 14:48:07

Message: 1 of 2

Hi there,

Suppose I have a matrix (512x512x8). I'd like to know, for each of the 512x512 positions, which is the maximum value out of the last dimension values. So, I'd like to start with the 512x512x8 matrix and end up with a 512x512 matrix.

Thanks,
FS

Subject: Findind NxN max values in a (NxNx8) 3d array

From: James Tursa

Date: 17 Apr, 2013 15:31:09

Message: 2 of 2

"Francisco Seixas" wrote in message <kkmcn7$6re$1@newscl01ah.mathworks.com>...
> Hi there,
>
> Suppose I have a matrix (512x512x8). I'd like to know, for each of the 512x512 positions, which is the maximum value out of the last dimension values. So, I'd like to start with the 512x512x8 matrix and end up with a 512x512 matrix.

max(A,[],3)

E.g., see

http://www.mathworks.com/help/matlab/ref/max.html?searchHighlight=max

James Tursa

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us