MATLAB - Numerical Methods
Identify the error in this MATLAB code snippet for fitting data with
fit:x = (1:5)'; y = [2 4 6 8 10]'; f = fit(x, y, 'poly2');
fit:x = (1:5)'; y = [2 4 6 8 10]'; f = fit(x, y, 'poly2');
x and y as column vectors are valid inputs for fit.fit function requires the Curve Fitting Toolbox; without it, the code will error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions