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