how to send the polyfit with different dimension of X and Y ?
2 次查看(过去 30 天)
显示 更早的评论
HELLO,
I am xTrain as cell array with [1 , 8614] and yTrain also Cell array[ 1, 4612]
Converting these to arrays with
X_poly = cell2mat(xTrain);
y_poly = cell2mat(yTrain);
passing these parameters to polyfit function
[X_polynominal, mu, info]=polyfit(X_poly,y_poly,p);
Getting an error of
X and Y vectors must be the same size.
please help in how to resolve these issue or my question is we cannot pass the different dimesnion of X and Y to polyfit?
Thanks for the answers
Geetha.S
3 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!