Hi guys,
I need your help again.
how can i smooth or fitting my curve?
Many Thanks

답변 (1개)

the cyclist
the cyclist 2022년 7월 25일

0 개 추천

Do you mean you want a smooth line that goes through all the points? You could fit a spline:
% Set seed for reproducibility
rng default
% The data
x = 1:6;
y = rand(size(x));
% Fit a spline
xq = 1:0.1:6;
s = spline(x,y,xq);
% Plot
figure
plot(x,y,"ko",xq,s,"r--")
If you mean you want to fit some functional form (like maybe a square wave?) to the data, you'll need to give us more info. Also, uploading the data will help.

댓글 수: 3

Latifa Bouguessaa
Latifa Bouguessaa 2022년 7월 25일
hello sir,
I have uploaded the pictures and my code. i wanted that
signal nps smooth / fitting. This program is about calculating the noise power spectrum of the CT images.
many greetings your Latifa
the cyclist
the cyclist 2022년 7월 26일
Unfortunately, I can't run your code, because I don't have the Image Processing Toolbox.
Latifa Bouguessaa
Latifa Bouguessaa 2022년 7월 26일
:-(

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Smoothing에 대해 자세히 알아보기

질문:

2022년 7월 25일

댓글:

2022년 7월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by