i have try this rate equation code in MATLAB. but its not working. can anyone help me please!!!!!(adsbygoogle = window.adsbygoogle || []).push({});

mm=0;

for I = 0.1e-3:0.1e-3:4.5e-3;

m=mm+1;

q=1.6e-19;

alpha=2;

Tn=3e-9;

Tp=1e-12;

G0=0.6;

N0 = 1e24;

Gamma=.2;

epsilon=1e1;

Va=3.7e-14;

tini=0;

tfin=4e-9;

dt=1e-12;

N(1)=0;

S(1)=0;

p=G0*N(m)*S(m);

l=1+epsilon*S(m);

y=q*Va;

for t=tini:dt:tfin

delN=(I/y)-(N(m)/Tn)-(p/l);

end

end

tt=t;

tt=tt*1e9;

figure(1);

plot(tt,N);

**Physics Forums - The Fusion of Science and Community**

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

# Simulation of rate equation

Loading...

Similar Threads - Simulation rate equation | Date |
---|---|

Simulation of transistor switch circuit | Wednesday at 10:20 AM |

Simulating a Faraday Cage | Feb 27, 2018 |

Simulation Software for a Permanent Magnet Alternator Design | Feb 24, 2018 |

Need tutorial for magneto static simulation of C-core (Imag) | Feb 12, 2018 |

Power Ratings of RF Amplifiers | Feb 3, 2018 |

**Physics Forums - The Fusion of Science and Community**