Getting an error when using poly2sym
15 views (last 30 days)
Muhammad Farooq Zia on 23 Jul 2018
I am trying to use curve fitting on a plot to get the equation of a fifth-degree polynomial. Everything is working fine but once I try to convert a column vector to a polynomial, the program just hangs and then I have to restart MATLAB. This is the part of the code related to curve fitting:
CFSw = table2array(T(:,2));
CFFw = table2array(T(:,6));
disp (CFSw),disp (CFFw),
% Plot the fit with the plot method.
% Move the legend to the top left corner.
coeffvals = coeffvalues(fitpoly5);
C = coeffvals.';
% p = poly2sym(sym(C));
p = poly2sym(C);