Matlab求助:y=exp(-x.^2/2/a^2)*x./a^2;y=exp(-x.^2/2/a^2)*x./a^2;哪里错了load real.txt;load imag.txt;gray=abs(real+i*imag);[m n]=size(gray);gray=reshape(gray,m*n,1);a=std(gray);x=0:2000;y=(x.*exp((-x.^2)/(2*a^2)))/(a^2);figure;plot(x,y);就是
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/26 05:53:06
Matlab求助:y=exp(-x.^2/2/a^2)*x./a^2;y=exp(-x.^2/2/a^2)*x./a^2;哪里错了load real.txt;load imag.txt;gray=abs(real+i*imag);[m n]=size(gray);gray=reshape(gray,m*n,1);a=std(gray);x=0:2000;y=(x.*exp((-x.^2)/(2*a^2)))/(a^2);figure;plot(x,y);就是
Matlab求助:y=exp(-x.^2/2/a^2)*x./a^2;
y=exp(-x.^2/2/a^2)*x./a^2;哪里错了
load real.txt;
load imag.txt;
gray=abs(real+i*imag);
[m n]=size(gray);
gray=reshape(gray,m*n,1);
a=std(gray);
x=0:2000;
y=(x.*exp((-x.^2)/(2*a^2)))/(a^2);
figure;plot(x,y);
就是这样,倒数第二行错误
.刚试了下又没了 对于倒数第两行还有些不懂 有人讲讲么.
Matlab求助:y=exp(-x.^2/2/a^2)*x./a^2;y=exp(-x.^2/2/a^2)*x./a^2;哪里错了load real.txt;load imag.txt;gray=abs(real+i*imag);[m n]=size(gray);gray=reshape(gray,m*n,1);a=std(gray);x=0:2000;y=(x.*exp((-x.^2)/(2*a^2)))/(a^2);figure;plot(x,y);就是
a=std(gray);
x=0:2000;
a,x都是向量.运算都要加.
y=(x.*exp((-x.^2)/(2*a.^2)))/(a.^2);