How to get polynomial by the given root in MatLab? - poly -- MatLab
How to get polynomial by the given root in MatLab? - poly -- MatLab How to get polynomial by the given root in MatLab? [Ans] poly [description] (1) <pr_coef>=poly(<pr_vec>); It will return coefficients of polynomial with specified roots of polynomial. <pr_coef> coefficients of polynomial. vector type. <pr_vec> specified roots of polynomial. vector type. (2) <pr_M>=poly(<M>) Let M is be a N by N matrix. pr_M is a row vector with N+1 elements which are the coefficients of the characteristic polynomial. It is computed by det(lambda*eye(size(M)) - M). <pr_M> pr_M is coefficients of characterist polynomial. vector type. <M> roots of polynomial Square-Matrix type. more details on: Polynomial with specified roots or characteristic polynomial - MATLAB poly (mathworks.com) code: clear clc pr=[1:6] %root of polynomial poly1=poly(pr) %cooefficient of polynomial given by pr. fprintf( "1\n" ); %{ output: pr = 1 2 3 4 ...