Line | |
---|
1 | function e = eigmatrix(a1) |
---|
2 | %EIGMATRIX Returns the eigen value of the given matrix |
---|
3 | % This function returns the eigen value of the input matrix. This |
---|
4 | % function is used to demonstate the functionality of MATLAB Compiler. |
---|
5 | % Refer to the shared library section of MATLAB Compiler for more |
---|
6 | % information. |
---|
7 | |
---|
8 | % Copyright 2003-2007 The MathWorks, Inc. |
---|
9 | |
---|
10 | try |
---|
11 | %Tries to calculate the eigen value and return it. |
---|
12 | e = eig(a1); |
---|
13 | catch |
---|
14 | %Returns a -1 on error. |
---|
15 | e = -1; |
---|
16 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.