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

x=[4 8 34 23 98 31];
y=max(x);
(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