您好,如下程序
T=10:5:400
fun='2.8*10^3*((T/300).^1.5)*exp(300*Ef/(0.026*T))-1.1*10^3*((T/300).^1.5)*exp((-1.17-Ef)*300/(0.026*T))-1.0/(1+2*exp((Ef+0.04)*300/(0.026*T)))';
z=fzero(fun,-0.03);
如果带入确定的T的值可以进行计算,但如上程序不能运行,显示 Undefined function or variable 'T'
可以解决吗?万分感谢。。。。。。

 채택된 답변

toyica
toyica 2022년 11월 16일

0 개 추천

fun=@(T,Ef)2.8*10^3*((T/300).^1.5)*exp(300*Ef/(0.026*T))-1.1*10^3*((T/300).^1.5)*exp((-1.17-Ef)*300/(0.026*T))-1.0/(1+2*exp((Ef+0.04)*300/(0.026*T)));
arrayfun(@(T) fzero(@(Ef) fun(T,Ef),-0.03),10:4:400)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2022년 11월 16일

답변:

2022년 11월 16일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!