Borrar filtros
Borrar filtros

making plot smooth not completely linear

2 visualizaciones (últimos 30 días)
random1072
random1072 el 17 de Abr. de 2020
Comentada: random1072 el 17 de Abr. de 2020
trying to get my three plots to be smooth and rounded as two are exponential grow graphs and one is a quadratic graph. please help. The y components are my matrix k_tilde. attatched is my code and images of what i currently have.

Respuesta aceptada

David Hill
David Hill el 17 de Abr. de 2020
You could just overlay the respective curve-fit to your plot.
K_tilde_linear = M^(-1/2).*K.*M^(-1/2);
f=fit((1:14)',diag(K_tilde_linear),'poly1');
figure;
plot(f,(1:14)',diag(K_tilde_linear));
K_tilde_quad = M^(-1/2).*K_quadratic.*M^(-1/2);
f=fit((1:14)',diag(K_tilde_quad),'poly2');
figure;
plot(f,(1:14)',diag(K_tilde_quad));
K_tilde_expo_5 = M^(-1/2).*K_expo_5.*M^(-1/2);
f = fit((1:14)',diag(K_tilde_expo_5),'exp2');
figure;
plot(f,(1:14)',diag(K_tilde_expo_5));
K_tilde_expo_10 = M^(-1/2).*K_expo_10.*M^(-1/2)
f = fit((1:14)',diag(K_tilde_expo_10),'exp2');
figure;
plot(f,(1:14)',diag(K_tilde_expo_10));
  1 comentario
random1072
random1072 el 17 de Abr. de 2020
THANK YOU!.. love matlab but still trying to get the hang of plotting

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.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by