Check if a number is complex with MEX.
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi!
I would like to test if a number is complex. With Matlab I can do that using the function imag
imag(x)!=0 .
How can I do that using a mex file?
Thank you very much.
댓글 수: 0
답변 (1개)
Sravan Janamaddi
2019년 11월 19일
Though it is late adding for future reference,
Yes we can verify by using "mxIsComplex(<pointer>)".
Thanks
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!