How to use fminsearch to minimize sum of the squares and find the constant values?
4 次查看(过去 30 天)
显示 更早的评论
I have two data sets, D1 and D2. where D1 and D2 has the experimental and Calculated values. How to find the constant values by minimizing the sum of the squares(sum(D1-D2)^2 ==0).
Sum (s)= (D1-D2)^2 ==0
D1=[......] %experiemntal
D2=[......] % calculated
X =[......] % dimensions are same as D1&D2
Y =[......] % dimensions are same as D1&D2
D2= a*exp(b/X)*Y %%D2 is a function of A,B,X,Y
Sum (s)= (D1-D2)^2 ==0 %% the difference in the sum of the squres between D1 and D2 should be close to zero.
How to find the values of a and b by minimizing the sum of the squares between D1 and D2?
Thanks
3 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Particle & Nuclear Physics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!