plots values at specfic indices from 1D array

19 次查看(过去 30 天)
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?

采纳的回答

KSSV
KSSV 2017-4-19
编辑:KSSV 2017-4-19
K = rand(500,1) ;
plot(K(1:50:end))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by