plots values at specfic indices from 1D array

24 Ansichten (letzte 30 Tage)
Ananya Malik
Ananya Malik am 19 Apr. 2017
Kommentiert: Ananya Malik am 19 Apr. 2017
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?

Akzeptierte Antwort

KSSV
KSSV am 19 Apr. 2017
Bearbeitet: KSSV am 19 Apr. 2017
K = rand(500,1) ;
plot(K(1:50:end))

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by