Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
Bryce McCord
Bryce McCord le 21 Oct 2020
Clôturé : MATLAB Answer Bot le 20 Août 2021
Can somebody help/ give me an example of a function that would find the maximum of an array. Any help would be appreciated.
  2 commentaires
David Hill
David Hill le 21 Oct 2020
x=[4 8 34 23 98 31];
y=max(x);
Walter Roberson
Walter Roberson le 21 Oct 2020
(That could would find the maximum of a scalar or vector, not of an array with 2 or more dimensions.)

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by