hello, how can i use cvx to solve this max min problem? this is my code, but something wrong in my programming,can you help me?

clc,clear;

close all;

N=40;

DopTarg=0.4;

Dop=0.4-0.05:0.05:0.4+0.05;

svTarg=exp(1i*2*pi*(0:N-1)‘*DopTarg);
sv=exp(1i*2

*pi*(0:N-1)’*Dop);

% temp=zeros(3,1);

cvx_begin

variable const

% variable temp(3,1)

variable w(N,1) complex

maximize const

subject to

norm(w,2)<=1;

for ii=1:3

temp(ii)=abs(w’*sv(:,ii));

end

const=min(temp);

cvx_end