关于MATLAB 我试图用 int 函数 去积分一组数,但是总是出错,这是如下代码:M=10;m=5;belta=1;N_0=512;I_th=0.25;for inter_m = 0:1:m d=0.001;I=0:d:0.25;p=(1/(inter_m/N_0))*exp((-I.+1)/(inter_m/N_0))* besseli(0,sqrt(I.)/(inter_m/(2*N
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 22:17:15
关于MATLAB 我试图用 int 函数 去积分一组数,但是总是出错,这是如下代码:M=10;m=5;belta=1;N_0=512;I_th=0.25;for inter_m = 0:1:m d=0.001;I=0:d:0.25;p=(1/(inter_m/N_0))*exp((-I.+1)/(inter_m/N_0))* besseli(0,sqrt(I.)/(inter_m/(2*N
关于MATLAB
我试图用 int 函数 去积分一组数,但是总是出错,这是如下代码:
M=10;
m=5;
belta=1;
N_0=512;
I_th=0.25;
for inter_m = 0:1:m
d=0.001;
I=0:d:0.25;
p=(1/(inter_m/N_0))*exp((-I.+1)/(inter_m/N_0))* besseli(0,sqrt(I.)/(inter_m/(2*N_0)));
r=1/(inter_m/N_0)*exp(-I./(inter_m/N_0));
p_m= d*trapz(I,r);
r_m= d*trapz(I,p);
当我运行的时候,总提示 Unexpected MATLAB operator,紧急!
关于MATLAB 我试图用 int 函数 去积分一组数,但是总是出错,这是如下代码:M=10;m=5;belta=1;N_0=512;I_th=0.25;for inter_m = 0:1:m d=0.001;I=0:d:0.25;p=(1/(inter_m/N_0))*exp((-I.+1)/(inter_m/N_0))* besseli(0,sqrt(I.)/(inter_m/(2*N
M=10;
m=5;
belta=1;
N_0=512;
I_th=0.25;
for inter_m=0:m
d=0.001;
I=0:d:0.25;
p=(1/(inter_m/N_0)).*exp((-I+1)/(inter_m/N_0)).* besseli(0,sqrt(I)/(inter_m/(2*N_0)));
r=1/(inter_m/N_0)*exp(-I./(inter_m/N_0));
p_m= d*trapz(I,r);
r_m= d*trapz(I,p);
end
解决,试试