This should be quite straightforward but at 2a.m. my brains are not working 100%. ;)
I has exactly the same idea!!
but on the second line I used directly the logical indexing... ;-)
9871 Solvers
1365 Solvers
Sum the entries of each column of a matrix which satisfy a logical condition.
136 Solvers
Output any real number that is neither positive nor negative
316 Solvers
406 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!