# MATLAB: Help with curve fitting

graphgraphingMATLABplotplotting

trying to fit the curve on my graph so that it is rounded not sharp. Thank you.
figure(2);
plot(q_0,'ko-','Linewidth',1.5)
hold on
plot(q_1,'rs-','Linewidth',1.5)
plot(q_2,'bd-','Linewidth',1.5)
plot(q_3,'gv-','Linewidth',1.5)
hold off
xlim([1 13])
fit
legend({'Q0','Q1','Q2','Q3'})

``rng(0)x = 1:10; % x-valuesy = rand(size(x)); % random y-valuesxv = linspace(min(x), max(x), 100); % more points on x-axis to make a smooth curveyv = spline(x, y, xv); % interpolation using splineplot(x, y, 'ro-', xv, yv, 'b-')``
``rng(0)x = 1:10; % x-valuesy = rand(size(x)); % random y-valuesxv = linspace(min(x), max(x), 100); % more points on x-axis to make a smooth curveyv = pchip(x, y, xv); % interpolation using pchipplot(x, y, 'ro-', xv, yv, 'b-')``
``rng(0)x = 1:10; % x-valuesy = rand(size(x)); % random y-valuesxv = linspace(min(x), max(x), 100); % more points on x-axis to make a smooth curveyv = makima(x, y, xv); % interpolation using makimaplot(x, y, 'ro-', xv, yv, 'b-')``