plots values at specfic indices from 1D array

19 ビュー (過去 30 日間)
Ananya Malik
Ananya Malik 2017 年 4 月 19 日
コメント済み: Ananya Malik 2017 年 4 月 19 日
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))
  1 件のコメント
Ananya Malik
Ananya Malik 2017 年 4 月 19 日
Thanks a ton!!!!! That was a really quick reply!!

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-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