Non trivial solution to a linear system
이전 댓글 표시
Hello,
I am trying to solve a linear system of the form A*x=B with A = K-eigenfreq1(3)*M and B = [0 0 0 0 0]'
K and M are 5x5 matrices and eigenfreq1(3) is just a scalar.
However whenever I use the A\B command to solve the system I get the trivial solution x=[0 0 0 0 0]' and I am told that this solution is not unique. Is there a way to get the other, non trivial, solutions?

댓글 수: 4
Karim
2022년 10월 27일
out of curiosity, why do you not use the build in function eig ?
[ EigenModes , EigenFreq ] = eig( K , M );
Serge El Asmar
2022년 10월 27일
Serge El Asmar
2022년 10월 27일
See below for an example. This way you obtain all the natural frequencies and the corresponding modes.
K = rand(5);
M = rand(5);
[ EigenModes , EigenFreq ] = eig( K , M )
EigenFreq = diag( EigenFreq )
채택된 답변
추가 답변 (1개)
However whenever I use the A\B command to solve the system I get the trivial solution x=[0 0 0 0 0]' and I am told that this solution is not unique. Is there a way to get the other, non trivial, solutions?
null(A) gives you a basis for the kernel of A.
카테고리
도움말 센터 및 File Exchange에서 State-Space Control Design and Estimation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

