curve fitting with fminsearch
Show older comments
Hello all,
I'm trying to learn MATLAB and take a course for that, and i have a homework that i can't solve. I have experimental datas for x and y variables(total 11 each) and the question asks me to fit the datas by using 'fminsearch' .
Can anyone help me how can i find the best curve and write a proper code? Thank you
x=[3, 5, 7, 10, 13, 17, 20, 23, 25, 29, 31];
y=[1.1 , 2.0 , 3.7 , 9.0 , 22.2 , 73.8 , 181.5,446.5 , 813.6 , 2701.3 , 4922.1];
2 Comments
Ameer Hamza
on 18 May 2020
Edited: Ameer Hamza
on 18 May 2020
Can you show what you have already tried? Even if you don't have a code, can you write down your understanding about solving this problem?
Burak Akayoglu
on 18 May 2020
Accepted Answer
More Answers (1)
Ang Feng
on 18 May 2020
1 vote
Hi Burak,
This link is certainly helpful
Matlab has very good documentation.
Good luck
1 Comment
Burak Akayoglu
on 18 May 2020
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
