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/07/19 23:55:00
![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](/uploads/image/z/11621708-44-8.jpg?t=matlab%E6%88%91%E7%BC%96%E7%9A%84%E8%BF%99%E4%B8%AA%E5%87%BD%E6%95%B0%E5%93%AA%E9%87%8C%E9%94%99%E4%BA%86function+Y%3D+%3D+R%28j%2CER+%29%25UNTITLED3+Summary+of+this+function+goes+here%25+Detailed+explanation+goes+hereE%3D-0.0%2Bj%2A0.000000001%3Be%3D1.6%2A10%5E-19%3Bk%3D1.3806505%2A10%5E-23%3BT%3D0.1%3BVL%3D-0.1%3Bh%3D6.62%2A10%5E-34%3BY%3D1%2F%28%28exp%28%28E-e%2AER%29%2F%28k%2AT%29%29%29%2B1%29%3Be)
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 在函数中就没用,认真看看吧.