Check if a number is complex with MEX.
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Sravan Janamaddi
am 19 Nov. 2019
Though it is late adding for future reference,
Yes we can verify by using "mxIsComplex(<pointer>)".
Thanks
0 Kommentare
Siehe auch
Kategorien
Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!