matlab我编的这个函数哪里错了function Y= = R(j,ER )%UNTITLED3 Summary of this function goes here% Detailed explanation goes hereE=-0.0+j*0.000000001;e=1.6*10^-19;k=1.3806505*10^-23;T=0.1;VL=-0.1;h=6.62*10^-34;Y=1/((exp((E-e*ER)/(k*T)))+1);e
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 02:26:39
matlab我编的这个函数哪里错了function Y= = R(j,ER )%UNTITLED3 Summary of this function goes here% Detailed explanation goes hereE=-0.0+j*0.000000001;e=1.6*10^-19;k=1.3806505*10^-23;T=0.1;VL=-0.1;h=6.62*10^-34;Y=1/((exp((E-e*ER)/(k*T)))+1);e
matlab我编的这个函数哪里错了
function Y= = R(j,ER )
%UNTITLED3 Summary of this function goes here
% Detailed explanation goes here
E=-0.0+j*0.000000001;
e=1.6*10^-19;k=1.3806505*10^-23;T=0.1;VL=-0.1;h=6.62*10^-34;
Y=1/((exp((E-e*ER)/(k*T)))+1);
end
它说
Error:File:R.m Line:1 Column:13
The expression to the left of the equals sign is not a valid target for an assignment.
matlab我编的这个函数哪里错了function Y= = R(j,ER )%UNTITLED3 Summary of this function goes here% Detailed explanation goes hereE=-0.0+j*0.000000001;e=1.6*10^-19;k=1.3806505*10^-23;T=0.1;VL=-0.1;h=6.62*10^-34;Y=1/((exp((E-e*ER)/(k*T)))+1);e
function Y=R(j,ER )
%UNTITLED3 Summary of this function goes here
% Detailed explanation goes here
E=-0.0+j*0.000000001;
e=1.6*10^(-19);k=1.3806505*10^(-23);
T=0.1;
% VL=-0.1;
% h=6.62*10^(-34);
Y=1/((exp((E-e*ER)/(k*T)))+1);
end
你的错误太多,大概改了一下,VL ,h 在函数中就没用,认真看看吧.