Rounding-off zero to negative
Mostrar comentarios más antiguos
Is there any built-in function in matlab that takes all the negative values equal to zero? or round off negative values to zero? Regards
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 16 de Ag. de 2011
A = max(A,0);
But cross-check whether this gives you the behaviour you want for NaN.
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!