I have a 24x60 matrix and I want to find the min and max for each row. i want the ouput to be a 1x24 matrix of the maximums and a different 1x24 matrix for the miniums. Thank you!

回答 (1 件)

David Hill
David Hill 2022 年 4 月 14 日

0 投票

a=randi(10000,24,60);
Min=min(a,[],2);
Max=max(a,[],2);

1 件のコメント

Josiah Bloom
Josiah Bloom 2022 年 4 月 14 日
thank you!

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeResizing and Reshaping Matrices についてさらに検索

製品

リリース

R2021b

質問済み:

2022 年 4 月 14 日

コメント済み:

2022 年 4 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by