Finding where a slope becomes linear
3 ビュー (過去 30 日間)
古いコメントを表示
I recently took a class teaching Matlab and I'm trying to use it at my internship to find where our plotted data, using a vector of x and y data values, starts to become linear. I am trying to use a polyfit and then find the slope using the maximum slope and find the y value of where that begins. Can someone help me?
1 件のコメント
Jan
2012 年 3 月 15 日
What is a vector of x and y data? What exactly is a linear slope? Are you looking for a zero curvature? How do you use the maximum slope to find the value where what begins?
採用された回答
Jan
2012 年 3 月 15 日
I'm not sure about the question. Perhaps you are looking for this:
curvature = diff(diff(x));
find(curvature < 1e-6)
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File 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!