Matlab eigenvectors of symbolic matrix not working

Click For Summary
SUMMARY

The discussion centers on the challenges of computing eigenvectors for symbolic matrices in MATLAB, specifically a 3x3 rotation matrix. The user successfully computes eigenvectors for a standard rotation matrix but encounters errors when attempting to find eigenvectors for a non-standard rotation matrix. The error message indicates that MATLAB's symbolic toolbox struggles with certain symbolic computations, suggesting alternatives like Maple or Wolfram Alpha for resolving these issues.

PREREQUISITES
  • Familiarity with MATLAB symbolic toolbox
  • Understanding of eigenvalues and eigenvectors
  • Knowledge of rotation matrices in linear algebra
  • Basic troubleshooting skills in MATLAB error messages
NEXT STEPS
  • Explore the capabilities of MATLAB's symbolic toolbox for matrix operations
  • Learn how to use Maple for symbolic computations
  • Investigate Wolfram Alpha for symbolic matrix analysis
  • Study the limitations of MATLAB's eig function with symbolic inputs
USEFUL FOR

Mathematics students, engineers, and researchers working with symbolic computations in MATLAB, particularly those dealing with linear algebra and matrix theory.

Maxong091
Messages
4
Reaction score
0
Hi all,

I'm trying to find the eigenvectors of a symbolic 3x3 rotation matrix in MATLAB, it appears to work for some inputs but not all, for example:

A =[ cos(q), -sin(q), 0]
[ sin(q), cos(q), 0]
[ 0, 0, 1]

[V,lambda]=eig(A)

V =[ 0, -i, i]
[ 0, 1, 1]
[ 1, 0, 0]

lambda =[ 1, 0, 0]
[ 0, cos(q) - sin(q)*i, 0]
[ 0, 0, cos(q) + sin(q)*i]

this works fine, however if I try something which is not a rotation about a unit axis I get the following error:

A =[ cos(q), -sin(q), 0]
[ 0, 0, -1]
[ sin(q), cos(q), 0]

>> [V,lambda]=eig(A)
Warning: basis of eigenspace for eigenvalue cos(q)/3 - (cos(q)^2/3 + cos(q)^3/27 + sin(q)^2/2 + ((cos(q)/3 - cos(q)^2/9)^3 +
(cos(q)^3/27 + cos(q)^2/3 + sin(q)^2/2)^2)^(1/2))^(1/3)/2 + (cos(q)/3 - cos(q)^2/9)/(2*(cos(q)^2/3 + cos(q)^3/27 + sin(q)^2/2 +
((cos(q)/3 - cos(q)^2/9)^3 + (cos(q)^3/27 + cos(q)^2/... [linalg::eigenvectors]
? Error using ==> mupadmex
Error in MuPAD command: Unable to find explicit eigenvectors.

Error in ==> sym.sym>sym.mupadmexnout at 2003
out = mupadmex(fcn,args{:});

Error in ==> sym.eig at 68
[V,D,p] = mupadmexnout('mllib::eigenvectors',A);


Any help would be appreciated
Thanks
Max
 
Physics news on Phys.org

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K