Inverse of individual matrix element (complex variables)

Hello,
Anyone please help, how can I invert each data of an NxN matrix with complex values. Say for example
A = [.02+.04i .01+.03i; .02+.04i .01+.03i]
into
B = [10-20i 10-30i; 10-20i 10-30i];
I tried A^-1 and 1/A but it yield a different answer. Looking forward for your help. Thank you.

 채택된 답변

Steven Lord
Steven Lord 2017년 2월 26일
Perform elementwise division.
A = [.02+.04i .01+.03i; .02+.04i .01+.03i];
B = 1./A

댓글 수: 3

Thanks
I tried doing this for a matrix with some zero values, I am getting INF in the inverse matrix. I have to use it for further calculations but INF does not look good.
you're dividing by zero

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2017년 2월 26일

댓글:

2020년 11월 17일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by