detect row and column

how to know value for minimum and maximum of row and column

 Accepted Answer

Wayne King
Wayne King on 20 Mar 2012
X = randn(10,5);
min(X,[],1)
min(X,[],2)
max(X,[],1)
max(X,[],2)

1 Comment

As the cyclist says, these syntaxes are documented

Sign in to comment.

More Answers (1)

the cyclist
the cyclist on 20 Mar 2012

0 votes

Use the min() and max() functions.
More details available by reading "doc min" and "doc max".

Asked:

on 20 Mar 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!