From: Walter Roberson on 14 May 2010 02:31 Bruno Luong wrote: > "Anthony " <antfarinaccio(a)gmail.comremove.spam> wrote in message > <hsihkj$blf$1(a)fred.mathworks.com>... >> That doesn't seem to work on my matrix. Perhaps I wasn't clear enough >> in my explanation. >> > > You should modify Walter's command to > > sum(all(Returns>0,2)) Yes, somehow I missed the possibility of negatives. Perhaps because of all the questions we get from people wanting to know about detecting rows or columns of 0's vs non-zeros.
From: Anthony on 14 May 2010 10:55
This works perfectly! Thanks Anthony |