What does X = max(0,A) mean?
92 views (last 30 days)
Show older comments
Maroco Sc
on 16 Nov 2019
Commented: Maroco Sc
on 16 Nov 2019
What does X = max(0,A) mean?
0 Comments
Accepted Answer
JESUS DAVID ARIZA ROYETH
on 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]
More Answers (0)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!