MATLAB: Scaling a vector from 352800×1 to 300000×1 by cutting last 52800 row elements

MATLABvector

i have a 352800×1 vector . now i want to take only 300000 row elements .how can i cut last 352800-300000=52800 elements and make it a 300000×1 vector ??

Best Answer

x = rand(352800,1);
x(300001:end) = [];
size(x)