How can this probability function be entered?
古いコメントを表示
I'm very new to matlab. I want to take this equation and use matlab to graph it:

I used this code

The variable P is created but it has a value for the first element, then all zeros.
採用された回答
その他の回答 (1 件)
Greig
2015 年 3 月 8 日
Change P to
P = (1./(1+exp(-z*e*(VV/(k*T1)))));
Since the (1+exp(..)) is a vector you have to use array division (./)
カテゴリ
ヘルプ センター および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!