In R, I can do the following:
v <- 11:20
v[-(4:5)]
and get 11 12 13 16 17 18 19 20
, thus all indices except the 4th and 5th.
Is there an equivalent in Matlab's indexing logic?
However I wrap my mind around it, I do not seem to get the correct search terms to google my own result for this fairly elementary question.
Note: Of course I might use some of the set functions, e.g.
v = 11:20;
v(setdiff(1:length(v), 4:5))
However, this just is not intuitive.