Problem about RootOf in Singular Value Decomposition
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
I have a problem about getting rid of the RootOf function that appears as a result of a singular value decomposition (SVD). I'd appreciate your help.
I obtain a vector of singular values of a 4x4 matrix L by "sigma=svd(L)". L has only one variable, which is "kx". The vector of singular values is given below. What Matlab does is to add an additional variable "z1" to the result. As a result, I have two variables, kx and z1. My question is how I can obtain a vector of singular values without a "z1" variable?
In addition, there is a "[1]^(1/2)" term at the end of each row. What does that point out?
The result of sigma=svd(L) is:
sigma=
RootOf(256*kx^2*z1^6*conj((- kx^2 + 9/4)^(1/2))^2)[1]^(1/2)
RootOf(256*kx^2*z1^6*conj((- kx^2 + 9/8)^(1/2))^2)[1]^(1/2)
RootOf(256*kx^2*z1^6*conj((- kx^2 + 9/16)^(1/2))^2)[1]^(1/2)
RootOf(256*kx^2*z1^6*conj((- kx^2 + 9/24)^(1/2))^2)[1]^(1/2)
Thanks in advance,
Erdem
댓글 수: 0
채택된 답변
Star Strider
2014년 7월 12일
The z1 is a dummy variable the Symbolic Math Toolbox inserts in some situations. Without seeing your code, it is difficult to say what it could mean. The RootOf may have to do with the symbolic engine assuming that kx could be complex. Declaring it real in your syms or sym statement could clear that up. No guarantees.
댓글 수: 9
Star Strider
2014년 7월 13일
My pleasure!
I’m very happy it works! I’ll look for your other thread, since I’m interested in your project.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!