SingularException(2) error while doing complex matrix inversion

I wanted to have the inverse of a complex matrix, but it shows SingularException (2) error.
For example:

a=[1.0+2.0im 1.0+2.0im; 3.0+4.0im 3.0+4.0im]; inv(a)

It gives the error
SingularException(2)

I was wondering if anybody could help me out regarding this.

Well, that matrix is singular, so you can’t invert it.

2 Likes

Thanks Tamas, I have found out the problem.