Not enough input arguments in lsqcurvefit function
显示 更早的评论
xdata is 744x1 double vector
ydata is 744x1 double vector
function consists of
function ydata=calcor(k,xdata)
ydata=1-(1-k)*(xdata.^k);
end
x0=[0 0]
lsqcurvefit is written like below
k= lsqcurvefit(calcor,x0,xdata,ydata);
it keeps giving me not enough input argument error.
Not enough input arguments.
Error in calcor (line 2)
回答(1 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Matrix Computations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!