matlab 画图移一下坐标程序如下: Nw = 1024; lambda_min = 883;lambda_max = 1183;dlambda = (lambda_max-lambda_min)/(Nw-1); x=(-Nw/2:1:Nw/2-1).*dlambda; Ew=exp(-x.^2./2); plot(x,Ew);Nt=(-2*Nw:1:2*Nw-1)*0.01; Et=fftshift(fft(Ew
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/07 15:39:52
matlab 画图移一下坐标程序如下: Nw = 1024; lambda_min = 883;lambda_max = 1183;dlambda = (lambda_max-lambda_min)/(Nw-1); x=(-Nw/2:1:Nw/2-1).*dlambda; Ew=exp(-x.^2./2); plot(x,Ew);Nt=(-2*Nw:1:2*Nw-1)*0.01; Et=fftshift(fft(Ew
matlab 画图移一下坐标
程序如下:
Nw = 1024;
lambda_min = 883;
lambda_max = 1183;
dlambda = (lambda_max-lambda_min)/(Nw-1);
x=(-Nw/2:1:Nw/2-1).*dlambda;
Ew=exp(-x.^2./2);
plot(x,Ew);
Nt=(-2*Nw:1:2*Nw-1)*0.01;
Et=fftshift(fft(Ew,4096));
plot(Nt,real(Et));
我的问题是:能否把第一个图的最大值对应坐标移到1030,第二个图不变,
matlab 画图移一下坐标程序如下: Nw = 1024; lambda_min = 883;lambda_max = 1183;dlambda = (lambda_max-lambda_min)/(Nw-1); x=(-Nw/2:1:Nw/2-1).*dlambda; Ew=exp(-x.^2./2); plot(x,Ew);Nt=(-2*Nw:1:2*Nw-1)*0.01; Et=fftshift(fft(Ew
什么意思?
plot(x+1030,Ew);这不就平移了?