How to plot a sinus uniformly?

5 次查看(过去 30 天)
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 个)

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