How to get a smooth curve using plot in matlab

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

回答 (1 件)

dpb
dpb 2017 年 5 月 16 日

0 投票

'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

カテゴリ

ヘルプ センター および File ExchangeSmoothing についてさらに検索

タグ

質問済み:

2017 年 5 月 16 日

回答済み:

dpb
2017 年 5 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by