how to send the polyfit with different dimension of X and Y ?
5 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Automated Driving Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!