How can I use fmisearch() to evaluate the parameters in a matrix?
Show older comments
I have the following equation:
f(t)=integral(g(t,x)*h(x) dx)
I discretized the problems because the symbolic expression can't be evaluate (too complicated), so:
where:
f(t) is a vector length=n;
g(t,x) is a matrix n rows and m columns;
h(x) should be a vector length=m. However it depends on 3 parameters.
I want to determine those 3 parameters such that f(t)-integral()=0.
If the 3 parameters are known I use trapz or Simpson method to evaluate the integral.
Do you know a method to apply fminsearch() to evaluate the 3 parameters?
Thank you in advance
Accepted Answer
More Answers (1)
3Nz0
on 1 May 2021
0 votes
8 Comments
Star Strider
on 1 May 2021
I have not been able to get a good fit regardless of several different attempts and sevral different approaches, some of which took a few hours to run.
I looked at ‘file.txt’, however I have no idea how to integrate it into the parameter estimation approach.
3Nz0
on 1 May 2021
Star Strider
on 1 May 2021
As always, my pleasure!
I wish I could have gotten the function to fit the data. Since I do not understand what you are doing or what the function is that you want to fit, unfortunately I cannot offer any other suggestions.
3Nz0
on 1 May 2021
Star Strider
on 1 May 2021
As always, my pleasure!
What were the succesful parameter estimates?
3Nz0
on 1 May 2021
Star Strider
on 1 May 2021
Thank you!
I’ll check those. If I can improve on them, I’ll post back here.
3Nz0
on 1 May 2021
Categories
Find more on Univariate Discrete Distributions 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!