What does X = max(0,A) mean?

87 vues (au cours des 30 derniers jours)
Maroco Sc
Maroco Sc le 16 Nov 2019
Commenté : Maroco Sc le 16 Nov 2019
What does X = max(0,A) mean?

Réponse acceptée

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH le 16 Nov 2019
it means that some value less than 0 in matrix A will be replaced by 0 in order to have a matrix whose minimum value is 0, example:
max (0, [1 2; -5 5])
returns [1,2; 0 5]
  1 commentaire
Maroco Sc
Maroco Sc le 16 Nov 2019
Thank you

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by