How to get a smooth curve using plot in matlab
1 次查看(过去 30 天)
显示 更早的评论
E and QPM are vectors
xValues = linspace(min(E),max(E));
yValues = interp1(E,QPM,xValues,'spline');
plot(E,QPM,xValues,yValues);
when i use the above code,the curve in the graph is not smooth.How to get a smooth curve
0 个评论
回答(1 个)
dpb
2017-5-16
'spline' goes through the points given and uses a spline to fill in between.
Perhaps you're looking for "smoothing spline". In the Curve Fitting TB is
doc spaps
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Splines 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!