필터 지우기
필터 지우기

How to get a smooth curve using plot in matlab

조회 수: 3 (최근 30일)
Nithya SIvasamy
Nithya SIvasamy 2017년 5월 16일
답변: dpb 2017년 5월 16일
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일
'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

카테고리

Help CenterFile Exchange에서 Smoothing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by