필터 지우기
필터 지우기

How insert marker points on plot

조회 수: 3 (최근 30일)
Bruno
Bruno 2014년 1월 26일
답변: Amit 2014년 1월 26일
I have a plot of the following data : t=0:0.001:10; y=0.2*cos(t) + cos(1.4*t) + 0.8*cos(5.2*t) + 0.02*randn(1, 10001); I want insert 8 marker points (I) on the plot, in other words I want highlight these points with Circle or Asterisk I= (1, 1430, 2859, 4288, 5717, 7146, 8575, 10001). Thanks

답변 (1개)

Amit
Amit 2014년 1월 26일
After your plot of all the points:
hold on;
I = [1, 1430,2859,4288,5717,7146,8575,10001];
plot(t(I),y(I),'*b');

카테고리

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