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

92 Ansichten (letzte 30 Tage)
Maroco Sc
Maroco Sc am 16 Nov. 2019
Kommentiert: Maroco Sc am 16 Nov. 2019
What does X = max(0,A) mean?

Akzeptierte Antwort

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH am 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]

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by