Products & Services Solutions Academia Support User Community Company


minmax

Purpose

Ranges of matrix rows

Syntax

Description

minmax(P) takes one argument,

P
R x Q matrix

and returns the R x 2 matrix PR of minimum and maximum values for each row of P.

Alternatively, P can be an M x N cell array of matrices. Each matrix P{i,j} should have Ri rows and Q columns. In this case, minmax returns an M x 1 cell array where the mth matrix is an Ri x 2 matrix of the minimum and maximum values of elements for the matrix on the ith row of P.

Examples


 Provide feedback about this page 

Previous page midpoint mse Next page

Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS