I want to plot an integral function, if 'y' is an arbitrary vector ,
N=51; I=@(x)norm(exp(-1i*pi*x)- y'.*exp(-1i*pi*x*(0:(N-1)))).^2; F=integral(I,-1,1,'ArrayValued',true); plot(F);
This what I've tried, but it's not working.
arbitrary vectorintegral
N=51; I=@(x)norm(exp(-1i*pi*x)- y'.*exp(-1i*pi*x*(0:(N-1)))).^2; F=integral(I,-1,1,'ArrayValued',true); plot(F);
Best Answer