필터 지우기
필터 지우기

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.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by