How to find corresponding row positions of specific values in a matrix?

1 次查看(过去 30 天)
Hi,
I have matrix A (365x42) with mean daily temperature for 42 years and matrix B (1x42) with lowest daily temperature in each year derived from matrix A using B = min(A).
I want another matrix C (1x42) with corresponding row positions (in each column of matrix A) of values in matrix B.
Thank you!

采纳的回答

Fabio Freschi
Fabio Freschi 2019-10-28
The function min will do this for you
[B,C] = min(A,[],1);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by