MATLAB: Plots values at specfic indices from 1D array

MATLABplotspecific indices

I have an array of 500 values. I want to plot value at every 50th index (i.e. 1, 51, 101, 151, 201, 251, 301, 351, 401, 451 and 500). Can anyone help me to do it?

Best Answer

K = rand(500,1) ;
plot(K(1:50:end))
Related Question