MATLAB: How to create this matrix without hardcoding the values

humorMATLABMATLAB and Simulink Student Suitematrixmatrix manipulation

13 -1 5
-22 10 -87

Best Answer

Here is one way.
r = [ 1.5355 + 0.0000i
-1.0914 + 1.0781i
-1.0914 - 1.0781i
0.3621 + 1.3117i
0.3621 - 1.3117i]';
p = reshape(round(13*poly(r)),[3 2])';
Related Question