Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含 100 个元素的向量。我有另一个向量,其中包含要从该向量中删除的元素的索引位置。
我该怎么做呢?
vector(indecies) = []
例子:
>> a = 1:10; >> a([3,4,7]) = [] a = 1 2 5 6 8 9 10