On Tuesday, February 05, 2013 10:59:44 PM Viral Shah wrote:
> That is very weird syntax that Matlab uses. We could probably provide a
> function that removes elements from a matrix, and it could do it in-place.
Greg, in case it's not obvious an easy way is this:
flag = trues(size(a))
flag[2:3] = false
a = a[flag]
That can easily be turned into a function, of course; as usual, the key
question is what to call it!
Matlab's syntax for this is convenient, but I agree with Viral that when you
think about it the syntax is rather strange.
--Tim