Using the matrix that comes from eig(), I would like to assign individual values in it to 3 separate variables, and then plug those into a separate matrix. However, I get an error. How do I do this?
E = eig(A)E(1,1) = w1;E(2,1) = w2;E(3,1) = w3;ans = [m1*w1^2 0 0; 0 m2*w2^2 0; 0 0 m3*w3^2 0]Unrecognized function or variable 'w1'.Error in eigen (line 23)E(1,1) = w1;
Best Answer