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!