Complement subset in Matlab [duplicate]
问题 This question already has an answer here : How do I remove elements at a set of indices in a vector in MATLAB? (1 answer) Closed 6 years ago . 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