curve fitting of a complex data

4 次查看(过去 30 天)
Supreeth D K
Supreeth D K 2023-7-25
I'm currently working on fitting some experimental data to a complex-valued function using MATLAB's lsqcurvefit function. However, I seem to encounter issues, and I'm not getting the desired solution. I'm hoping to get some guidance on what might be going wrong with my approach. I have tried changing the values of initial guesses
VALUE OF P1=102; P3=326;
w1=8000;
xdata = [0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000 5500 6000 6500 7000 7500 8000 8500 9000 9500 10000 10500 11000 11500 12000 12500 13000 13500 14000 14500 15000];
ydata = [0 23.23166979 43.89101766 61.37336819 76.13374067 88.63427978 99.17236163 107.96827 115.2289659 121.1585778 125.9542122 129.7976768 132.8504967 135.2544369 137.1234954 138.5545735 139.6310041 140.4137722 140.960863 141.3115956 141.5020398 141.5603911 141.5098635 141.3688178 141.150192 140.8714973 140.5392011 140.1625248 139.7464364 139.3025573 138.8344027];
function= -1j .* ((params(1) .* (xdata ./ 60) ./ (1 + (xdata ./ w1).^2)) + (params(2) .* (xdata ./ 60) ./ (1 + (xdata ./ params(3)).^2))) .* 0.001;
i want to fit the ydata to the function given, i have tried least square methods. But i am not getting the solution.
  9 个评论
Star Strider
Star Strider 2023-7-25
Bounding the parameters is straightforward. See the lsqcurvefit documentation for those details.
Supreeth D K
Supreeth D K 2023-7-27
I have tried that, but still i am not getting the solution. i want VALUE OF P1=102; P3=326;

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by