detect row and column

 采纳的回答

X = randn(10,5);
min(X,[],1)
min(X,[],2)
max(X,[],1)
max(X,[],2)

更多回答(1 个)

the cyclist
the cyclist 2012-3-20

0 个投票

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

Community Treasure Hunt

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

Start Hunting!

Translated by