How can this probability function be entered?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Greig
am 8 Mär. 2015
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 (./)
Kategorien
Mehr zu Matrices and Arrays finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!