explicitly finding eigenvalues and eigenvector of a matrix code example

Example 1: eigenvectors python

In [1]: import numpy as np

In [2]: K=np.random.normal(size=(2,2))

In [3]: eigenvalues, eigenvectors = np.linalg.eig(K)

In [4]: eigenvectors
Out[4]: 
array([[ 0.83022467+0.j        ,  0.83022467+0.j        ],
       [ 0.09133956+0.54989461j,  0.09133956-0.54989461j]])

In [5]: eigenvectors.shape
Out[5]: (2, 2)

Example 2: how to check eigen version

pkg-config --modversion eigen3

Example 3: finding eigen values and eigen vectors of a matrix in matlab

[V,D] = eig(A)