help with plotting smooth curve
Mostrar comentarios más antiguos
i need help connecting the dots with a smooth curve for this code ive written
data=zeros(1,20)
global Z_hit
for theta1=1:2:20 Z_hit=3*((0.5*(theta1^2))-((exp(-1*theta1)+theta1-1)))-2*((0.25*(theta1^2))-2*(exp(-1*theta1/2)+theta1-1))
data(theta1)=Z_hit
plot(theta1,data(theta1),'Marker','o')
hold on
end
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 1 de Abr. de 2014
Editada: Image Analyst
el 1 de Abr. de 2014
0 votos
Perhaps putting the data into spline will help. See attached demo below in blue text.

Categorías
Más información sobre Smoothing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!