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 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