View License

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

» Watch video

Highlights from
Multiple eigen-values for 2x2 and 3x3 matrices

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

4.75
4.8 | 4 ratings Rate this file 4 Downloads (last 30 days) File Size: 4.73 KB File ID: #27680 Version: 1.3

Multiple eigen-values for 2x2 and 3x3 matrices

by

Bruno Luong (view profile)

 

20 May 2010 (Updated )

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

| Watch this File

File Information
Description

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

Acknowledgements

This file inspired Quick Fatigue Tool.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
04 Dec 2016 Louis Vallance

Perfect submission, thanks!

16 Dec 2014 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.

11 Sep 2011 Andrey

Andrey (view profile)

Excellent submission! Saved me a lot of coding time.

26 Jul 2010 Jeff Evans

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

Updates
20 May 2010 1.1

Speed improvement

21 May 2010 1.2

Extend to complex matrices as well

27 May 2010 1.3

Extend for 2x2 matrices

Contact us