Can’t use conv() after using coeffs()? It works when manually inputting the coefficients but doesn’t when it is taken using coeffs
conv() returns an error when trying to use the outputs of coeffs()
syms s
eq1 = 2*s^2 + 3*s – 1;
N = coeffs(eq1, ‘All’);
eq2 = s^3 +6*s^2 + 1;
D = coeffs(eq2, ‘All’);
T = conv(N,D)
^this turns to error while
syms s
eq1 = 2*s^2 + 3*s – 1;
N = [2 3 -1];
eq2 = s^3 +6*s^2 + 1;
D = [1 6 0 1];
T = conv(N,D)
^this properly gives the correct resultconv() returns an error when trying to use the outputs of coeffs()
syms s
eq1 = 2*s^2 + 3*s – 1;
N = coeffs(eq1, ‘All’);
eq2 = s^3 +6*s^2 + 1;
D = coeffs(eq2, ‘All’);
T = conv(N,D)
^this turns to error while
syms s
eq1 = 2*s^2 + 3*s – 1;
N = [2 3 -1];
eq2 = s^3 +6*s^2 + 1;
D = [1 6 0 1];
T = conv(N,D)
^this properly gives the correct result conv() returns an error when trying to use the outputs of coeffs()
syms s
eq1 = 2*s^2 + 3*s – 1;
N = coeffs(eq1, ‘All’);
eq2 = s^3 +6*s^2 + 1;
D = coeffs(eq2, ‘All’);
T = conv(N,D)
^this turns to error while
syms s
eq1 = 2*s^2 + 3*s – 1;
N = [2 3 -1];
eq2 = s^3 +6*s^2 + 1;
D = [1 6 0 1];
T = conv(N,D)
^this properly gives the correct result equation, nonlinear MATLAB Answers — New Questions