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?

 採用された回答

KSSV
KSSV 2017 年 4 月 19 日
編集済み: KSSV 2017 年 4 月 19 日

2 投票

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

1 件のコメント

Ananya Malik
Ananya Malik 2017 年 4 月 19 日
Thanks a ton!!!!! That was a really quick reply!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

質問済み:

2017 年 4 月 19 日

コメント済み:

2017 年 4 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by