how can I plot 800 samples in a percentage cicle from 0 to 100% on x axis?

2 ビュー (過去 30 日間)
sara notarnicola
sara notarnicola 2020 年 9 月 23 日
編集済み: Adam Danz 2020 年 9 月 24 日
  5 件のコメント
VBBV
VBBV 2020 年 9 月 23 日
編集済み: VBBV 2020 年 9 月 24 日
%if true
% code
% end
S = 0:770; % change it acc to length of y data
Sp = S/770; % x data
Y = [...];% y data
plot(Sp*100,Y);
Adam Danz
Adam Danz 2020 年 9 月 24 日
編集済み: Adam Danz 2020 年 9 月 24 日
The x axis in the image you shared is far from circular (see polaraxes). The x axis is linear from 0 to 100.
I'm lost.

サインインしてコメントする。

採用された回答

Adam Danz
Adam Danz 2020 年 9 月 24 日
編集済み: Adam Danz 2020 年 9 月 24 日
If you wanted to normalize the X values (Sp) so that they span from 0 to 100,
SpNorm = (Sp-min(Sp))./range(Sp)*100;
plot(SpNorm, Y)

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-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