plot point in specified position

조회 수: 3 (최근 30일)
Rica
Rica 2014년 3월 26일
답변: Dishant Arora 2014년 3월 26일
Hi experts,
i have this vector for exemple:
%A=[1 2 3 5 6 4];
i want to plot the A(1) in the 10th position , the A(2) in the 20th position and so on an so forth.
between the A(1) and A(2), A(2) and A(3)....should be nothing plotted.
how to do this?

답변 (1개)

Dishant Arora
Dishant Arora 2014년 3월 26일
plot(10:10:10*length(A), A, 'r*')
xlim([0 10*length(A)])

카테고리

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