MATLAB: Sum of complex fourier series

complexsimulinksum

how do i sum the products of ane^j(theta)n from n=0,1,2… if the error says the sum block says it was expecting a real input but is driven by a complex input?

Best Answer

The sum block does not support complex numbers. You will need to separate the numbers into real and complex parts and sum those, and then create a complex number from the result of the two.