您好,如下程序
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 ExchangeMATLAB についてさらに検索

タグ

質問済み:

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!