How to extract non complex number from an array?
이전 댓글 표시
if I have an array which have complex number and non complex number like
A = [2.2, 2+3i, 2-3i]
I want only 2.2 in A, i.e. A = 2.2
답변 (1개)
Alan Stevens
2020년 10월 17일
A(imag(A)==0)
카테고리
도움말 센터 및 File Exchange에서 Data Types에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!