Function for Script. I need to write a Function that selects the positive and negative numbers from a matrix. How to write this?
Mostrar comentarios más antiguos
I need to write a Function that selects the positive and negative numbers from a matrix. How to write this?
Respuesta aceptada
Más respuestas (1)
John Petersen
el 21 de En. de 2015
a = 0.5 - rand(3,3);
%Positive numbers
a(a>=0)
% negative numbers
a(a>0)
1 comentario
ricsf
el 21 de En. de 2015
Categorías
Más información sobre Annotations 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!