help with curve fitting
Show older comments
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'})

Accepted Answer
More Answers (1)
David Hill
on 4 May 2020
0 votes
Use fit() function
Categories
Find more on Interpolation 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!

