How to plot a sinus uniformly?

6 ビュー (過去 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 Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by