MATLAB 2020b vs earlier versions

2 次查看(过去 30 天)
Dear All,
I am attaching two MATLAB codes to this message, and when I run "Version 15" it produces for "eta" result equal to about 0.08 in MATLAB2020b. But in earlier versions of MATLAB the result is about 0.13.
I was wondering why the difference and if there is any possible problem with the most recent MATLAB release.
Thank you for your help in advance. I am attaching the two codes to this message.

采纳的回答

Walter Roberson
Walter Roberson 2020-9-23
The version with about 0.13 is not an especially good fit; it has a sum-of-squared-errors of about 0.06 for the fsolve.
You can do better near 0.08. In particular, the following x has a SSE of about 1E-16 for the fsolve:
2.41822013449192763, 0.393312505963807846, 0.463898429336224605, 1.00253486482090381, 0.345768760645462359, 0.290239202125991747, 1.37204767772094183, 0.0843373491237134065, 0.927918117994239955

更多回答(0 个)

类别

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

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by