File Exchange

image thumbnail

Multiple eigen-values for 2x2 and 3x3 matrices

version 1.3 (4.73 KB) by

Compute in one shot the eigen-values of multiples (3 x 3) matrices using Cardan's formula

3 Downloads

Updated

View License

Note that this function do not return EIGEN VECTORS.

This function is faster than looping on EIG when eigenvalues must be computed for a large number of matrices. The test shows it can speed up by 10 times

Comments and Ratings (4)

Perfect submission, thanks!

Russell

Russell (view profile)

I absolutely love the speedup. However, isn't polynomial root finding an unstable problem? For one of my applications, the difference between eigenvalues found by "eig3" and MATLAB's "eig" is 5-10% on average.

Andrey

Andrey (view profile)

Excellent submission! Saved me a lot of coding time.

Jeff Evans

Excellent. Much faster than running eig in a for loop. Thanks!

Updates

1.3

Extend for 2x2 matrices

1.2

Extend to complex matrices as well

1.1

Speed improvement

MATLAB Release
MATLAB 7.10 (R2010a)
Acknowledgements

Inspired: Quick Fatigue Tool

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video