Why curve fitting tools line not started with my data?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I have a data and I used curve fitting tool. My question is,"Why curve fitting tools line not started with my data?" and how can I fix it?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153666/image.jpeg)
Thanks for your help.
댓글 수: 2
the cyclist
2013년 12월 13일
Pure speculation on my part, but it looks like the fitted line starts at x=0, but the data start at x=1. Maybe that's what OP means.
답변 (1개)
John D'Errico
2013년 12월 13일
편집: John D'Errico
2013년 12월 13일
Reading the help for plot would seem to be useful. It would tell you that:
When you use plot with ONE argument, it assumes that the x variable is simply an index vector, 1:length(y).
How can plot possibly know that you wanted it to start at zero? MATLAB does not read your mind, although the mind reading toolbox has been under construction for many years.
댓글 수: 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!