How to plot a sinus uniformly?

조회 수: 4 (최근 30일)
Nikolay Konstantinov
Nikolay Konstantinov 2018년 2월 5일
댓글: Jos (10584) 2018년 2월 5일
If I plot sinus like this
x=0:0.05:2*pi;
y=sin(x);
plot(x,y,'.-')
I'm getting obviously non-uniformly density of points. Please see attachment. What I want is, that points should be at the equivalent distance each other. So, I need to define x array somehow.. or is there is another way?
  댓글 수: 1
Jos (10584)
Jos (10584) 2018년 2월 5일
Define "equivalent distance". 2D?

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

답변 (1개)

Nikolay Konstantinov
Nikolay Konstantinov 2018년 2월 5일
It can be done via
y=-1:.05:1;
plot(asin(y),y,'o')

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by