필터 지우기
필터 지우기

How can i amelirate the smooth of this curve ?

조회 수: 5 (최근 30일)
Mallouli Marwa
Mallouli Marwa 2017년 2월 12일
답변: Image Analyst 2017년 2월 13일
Hi
I want to ameliorate the smooth of attached curve.
rload=[100;1e3;10e3;100e3;1e6;10e6];
power_hs=[1.570642571; 15.23486212; 1.12E+02; 1.37E+02; 81.69126068; 10.5949686];
loglog(rload,power_hs,'m')

채택된 답변

Chad Greene
Chad Greene 2017년 2월 12일
편집: Chad Greene 2017년 2월 12일
% Your data:
rload=[100;1e3;10e3;100e3;1e6;10e6];
power_hs=[1.570642571; 15.23486212; 1.12E+02; 1.37E+02; 81.69126068; 10.5949686];
loglog(rload,power_hs,'mo')
%
% Interpolate in log space:
powi = 10.^(interp1(2:7,log10(power_hs),linspace(2,7,1000),'spline'));
%
% Plot interpolated curve
hold on
loglog(logspace(2,7,1000),powi,'m-')

추가 답변 (1개)

Image Analyst
Image Analyst 2017년 2월 13일
Like I said in your duplicate question you can use interp1(), conv(), sgolayfilt(), or splines to interpolate in and smooth the points. That's what Chad did, and the result looks pretty good to me. You can adjust the parameters to adjust the smoothness if you want.

카테고리

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