source: proiecte/PPPP/ica/work/eigmatrix.m @ 138

Last change on this file since 138 was 138, checked in by (none), 14 years ago

PPPP - ica

File size: 475 bytes
Line 
1function 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;
16end
Note: See TracBrowser for help on using the repository browser.