plots values at specfic indices from 1D array

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?

 Réponse acceptée

KSSV
KSSV le 19 Avr 2017
Modifié(e) : KSSV le 19 Avr 2017
K = rand(500,1) ;
plot(K(1:50:end))

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by