When trying to smooth the graph at the end, some kind of error occurs in its construction.
%a=(1+rand(1,size(x,2))).*10^-5; % this code makes my values ​​unique
%b=(1+rand(1,size(x,2))).*10^-5;
%x=x+a;
%y=y+b;
yy1 = smooth(x,y,0.1,'loess'); % with a value of 0.1 I like the beginning of the graph
plot(x,y,'b.',x,yy1,'r-') % when using "rloess" same error
Thank you in advance.

댓글 수: 2

Matt J
Matt J 2022년 3월 31일
What error? You should copy/paste all error messages.
Lev Mihailov
Lev Mihailov 2022년 4월 1일
@Matt J at the end of the file, the red line is not built correctly

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

 채택된 답변

MJFcoNaN
MJFcoNaN 2022년 4월 3일

0 개 추천

"x" is not monotonous, therefore, you should use this kind of form:
yy1 = smooth(y,0.1,'loess');

추가 답변 (0개)

카테고리

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

제품

질문:

2022년 3월 31일

답변:

2022년 4월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by