Hi all, i have fitted a Four Parameters Logistic Regression for my X and Y data. i want to find the local slope of each data point, i would appreciate if somebody can help me on this , the attached image shows the fit
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Ben Drebing
2017-12-21
Do you mean you want to calculate the slope at each point along the curve? If your curve is given by x and y, then you can get the slope at each point along the curve by doing
slopes = diff(y) ./ diff(x);
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Least Squares 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!