Size of a function handle is not equal to YDATA

1 回表示 (過去 30 日間)
Erik Vabo Vatsvaag
Erik Vabo Vatsvaag 2018 年 10 月 30 日
コメント済み: madhan ravi 2018 年 10 月 30 日
Hello, I declare a function and when I try to use the lsqcurvefit to this function the size is not correct. I get the error message "Function value and YDATA sizes are not equal". The size of the YDATA is [1 2049], the size of one of the parameters in the function is the same and the other parameter in the function is a scalar. Why does the size of the function change?

回答 (1 件)

Star Strider
Star Strider 2018 年 10 月 30 日
The most likely reason is that the data you are fitting are a row (column) vector, and the function is returning a column (row) vector, or other size discrepancies.
  1 件のコメント
madhan ravi
madhan ravi 2018 年 10 月 30 日
+1 Perfect breakdown @star rider

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by