Group: comp.softsys.matlab · Group Profile · Search for Hosein in comp.softsys.matlab
Author: Steven Lord
Date: Jul 7, 2008 20:46
"Hosein " <Kalaeimh@yahoo.com> wrote in message <g4bige$qqe$1@fred.mathworks.com>... Assume that I have a matrix, say A, with 10^6 arrays. I want to change any array which is less than zero to zero. Also, I do not want to use 'if/end' and check each array. Any idea? If by "array" you mean "element" (given that by my definition an array is a matrix) then you can use logical indexing
|