how to make a plot smooth

1 visualización (últimos 30 días)
Mayank Lakhani
Mayank Lakhani el 11 de Ag. de 2015
Comentada: Star Strider el 12 de Ag. de 2015
How to smooth a plot?
len1 = [25, 250, 500, 750, 1000];
for k1 = 1:length(len1)
standard_deviation1(k1) = std(resdphs(1:5000, len1(k1)));
end
f10 = [110, 100, 90, 80, 70];
figure(3),plot(f10, standard_deviation1);xlabel('frequency'); ylabel('standarddev');
grid
  2 comentarios
Adam
Adam el 11 de Ag. de 2015
Your plot seems to bear no relation to the code that comes with it.
Mayank Lakhani
Mayank Lakhani el 11 de Ag. de 2015
Hey, Adam sorry for my mistake.

Iniciar sesión para comentar.

Respuesta aceptada

Star Strider
Star Strider el 11 de Ag. de 2015
I’m not certain what you want to do, but you might consider experimenting with polyfit and its friends.
  4 comentarios
Mayank Lakhani
Mayank Lakhani el 12 de Ag. de 2015
Hey Star Strider, thanks it is working :)
Star Strider
Star Strider el 12 de Ag. de 2015
My pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D 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