I got this error

’‘Disciplined convex programming error: Illegal operation: exp( {affine} ).’’ how can I fix it? y1 is complex and a,p are real.

cvx_begin sdp

variables a(n,1) p(n,1)

expression hh

hh=a.*(exp(-1i*p*pi/180));

minimize(sum_square_abs(y1-diag(hh)*ph))

cvx_end