MATLAB: How to make a plot smooth

MATLABplot

How to smooth a plot?
len1 = [25, 250, 500, 750, 1000];
for k1 = 1:length(len1)
standard_deviation1(k1) = std(resdphs(1:5000, len1(k1)));
end
f10 = [110, 100, 90, 80, 70];
figure(3),plot(f10, standard_deviation1);xlabel('frequency'); ylabel('standarddev');
grid

Best Answer

I’m not certain what you want to do, but you might consider experimenting with polyfit and its friends.