'How to crop out different sections of a matrix on Matlab?

I have a vector, let's say its dimensions is 1x100. If I want to remove the last 10 elements, I can do the following

a(91:100)=[];

However, if I want to simultaneously crop out 2 different sections, how do I do it? If I want to crop the elements from 50 to 60 as well, how do I do it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source