plots values at specfic indices from 1D array

18 views (last 30 days)
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?

Accepted Answer

KSSV
KSSV on 19 Apr 2017
Edited: KSSV on 19 Apr 2017
K = rand(500,1) ;
plot(K(1:50:end))
  1 Comment
Ananya Malik
Ananya Malik on 19 Apr 2017
Thanks a ton!!!!! That was a really quick reply!!

Sign in to comment.

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!