Hi Guys,(adsbygoogle = window.adsbygoogle || []).push({});

I am trying to plot a simple Maxwell-Boltzmann Equation curve that shows me the probability of opening an ion gated channel. The issue I am having is the output shows me just a linear horizontal line that is around 0.5 probability which makes no sense given my inputs.

Please take a look at my code below and help me if possible:

>> q = 1.6*10^(-19);

>> V = -100:1:40;

>> k = 8.617*10^(-5);

>> P = 1./(1+ exp(-z*q*((V+15)./(k*293.15))));

>> plot(V,P);

Basically I am plotting voltage ranges on the effect of probability that the ion gated channel for a membrane is open. It is a divalence, with room temp, and Voltage at 0.5 probability is -15mV.

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB simple code

**Physics Forums | Science Articles, Homework Help, Discussion**