Graph smoothing not working properly
Show older comments
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 Comments
Matt J
on 31 Mar 2022
What error? You should copy/paste all error messages.
Lev Mihailov
on 1 Apr 2022
Accepted Answer
More Answers (0)
Categories
Find more on Spline Postprocessing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!