Building a function that calls on an array and finds its maximum

Can somebody help/ give me an example of a function that would find the maximum of an array. Any help would be appreciated.

2 件のコメント

David Hill
David Hill 2020 年 10 月 21 日
x=[4 8 34 23 98 31];
y=max(x);
Walter Roberson
Walter Roberson 2020 年 10 月 21 日
(That could would find the maximum of a scalar or vector, not of an array with 2 or more dimensions.)

回答 (0 件)

この質問は閉じられています。

タグ

質問済み:

2020 年 10 月 21 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by