MATLAB: How to select every nth value with the last value fixed from a column

nth last value

I have a column of 4901 values starting from a value of -25 (at first position) to a value of 8579 (at 4901 th position). Now I want to have a new column that should comprise of values after every 100 th number BUT the last value ( i.e., 8579) should remain in the new column

Best Answer

use
a = original_vector(1:100:4901);