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

1 Ansicht (letzte 30 Tage)
  5 Kommentare
VBBV
VBBV am 23 Sep. 2020
Bearbeitet: VBBV am 24 Sep. 2020
%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 am 24 Sep. 2020
Bearbeitet: Adam Danz am 24 Sep. 2020
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Adam Danz
Adam Danz am 24 Sep. 2020
Bearbeitet: Adam Danz am 24 Sep. 2020
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)

Weitere Antworten (0)

Kategorien

Mehr zu Polar Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by