help:how to check whether a matrix is empty or not
help:how to check whether a matrix is empty or not
(OP)
suppose i have a while in my program and i want that to run till an one dimensional array q is empty
how to use this condition
how to use this condition





RE: help:how to check whether a matrix is empty or not
help isempty
RE: help:how to check whether a matrix is empty or not
its an algorithm where i have to run a while loop till an array is not empty
and i found this isempty already before u replied,
but u r really helpfull replying to all of my messages
thanks a lot for that
RE: help:how to check whether a matrix is empty or not
The word "loop" normally means that whatever it is you are doing, you are not making use of Matlab's fantastic vectorization capabilities. In general, loops work well for small datasets, but don't scale well. Similarly growing and shrinking matrices. And from your lmited problem description, it sounds like are combining the two.
I didn't mean to offend. Sorry if I inadvertently have.
RE: help:how to check whether a matrix is empty or not
Are you zeroing the values in the array as you process?
If so, why aren't you using a FOR loop?
TTFN