MATLAB: How to select particular rows of a column vector repeatedly

column vectorMATLABrows selection

I have a column vector containing 360 rows(monthly data, 12*10 years=360) and one column. i want to select monthly data of march, april and may of every year. i.e., I need to select 3rd,4th,5th rows for every 12 rows.like that for the 10 years.

Best Answer

I’m not exactly sure what you mean, perhaps:
vector(repmat([3,4,5],1,10))
edit:
vector(sort([3:12:360,4:12:360,5:12:360]))