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

1 visualización (últimos 30 días)
  5 comentarios
VBBV
VBBV el 23 de Sept. de 2020
Editada: VBBV el 24 de Sept. de 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 el 24 de Sept. de 2020
Editada: Adam Danz el 24 de Sept. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

Adam Danz
Adam Danz el 24 de Sept. de 2020
Editada: Adam Danz el 24 de Sept. de 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)

Más respuestas (0)

Categorías

Más información sobre Polar Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by