Why curve fitting tools line not started with my data?

1 回表示 (過去 30 日間)
net
net 2013 年 12 月 13 日
編集済み: John D'Errico 2013 年 12 月 13 日
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?
Thanks for your help.
  2 件のコメント
Andreas Goser
Andreas Goser 2013 年 12 月 13 日
What does "line not start" mean?
the cyclist
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
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.

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by