MATLAB: Divide all the elements of the column by the first entry

MATLABprogramming

Suppose I have a column vector
X=[2; 3; 4; 5];
I want to divide all elements of the vector by the first entry so that the outcome is
Y=[1; 1.5; 2; 2.5]
What will be a compact way to write this operation?

Best Answer

Do this:
Y = X / X(1)