Reproduce a best-fit 4-parameter sigmoid
3 次查看(过去 30 天)
显示 更早的评论
Hi, I'm trying to reproduce this type of graph, which apparently represents the best-fit 4-parameter sigmoid, but I have no idea where to start.
I have KSS data (hourly values) and melanopic EDI data (also hourly values). Any idea how to do this? Thank you!
0 个评论
回答(1 个)
the cyclist
2021-5-26
It is difficult when you say you have no idea. But, here are a few thoughts.
If you have never used MATLAB at all, then you have some work ahead of you in order to learn to fit a complicated equation using MATLAB. One good starting point is the MATLAB Onramp.
If you understand the basics of MATLAB, but just don't know how to plot your data, then I would suggest looking at the plot or scatter functions, or possibly
The most difficult part to code will likely be the model fitting. For this problem it looks like the fitnlm function from the Statistics and Machine Learning Toolbox would be appropriate.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!