'MATLAB API engine Python; Simulation results complex comes as nan+nj

I'm calling MATLAB functions in python using the MATLAB engine. Whenever, I pass an argument which output should be a complex number it shows [(nan+naj)] for all the values in array. But if output is supposed to be a real number it gives the output. enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source