Write a MATLAB function that takes a numeric array (vector or matrix) of numbers and replaces all negative numbers with zero. Positive numbers and zeros should remain completely unchanged.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers4
Suggested Problems
-
MATLAB 101: Replace Negatives with Zero
4 Solvers
More from this Author30
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!