What is the use of plot(x, y, ':') while plotting the graph?

조회 수: 1 (최근 30일)
S Priya
S Priya 2021년 8월 21일
답변: Walter Roberson 2021년 8월 21일
x=0:pi/100:2*pi;
y=cos(x);
y2=sinx
plo(x,y2, ':')
why is ':' required?
  댓글 수: 3
S Priya
S Priya 2021년 8월 21일
편집: S Priya 2021년 8월 21일
But plot(x,y2) also shows the results.
Rik
Rik 2021년 8월 21일
Did you perhaps mean plot(x,y2,':')?
If so, read the documentation for the plot function. It will clearly explain what that does.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2021년 8월 21일
':' is dotted line joining the points.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by