Recent content by vinny
-
V
Laser Rate Equation Using ODE45 in MATLAB?
clear all close all clc options = odeset('RelTol',1e-4,'AbsTol',[1e-4 1e-4 1e-5]); [T,Y] = ode45(@rate_equation,[0 10],[0 0], options); plot(T,Y(:,1)); title('carriers density in high laser level') hold on; When I run this I get the following errors ? Undefined function or method 'd' for input...- vinny
- Post #3
- Forum: Advanced Physics Homework Help
-
V
Laser Rate Equation Using ODE45 in MATLAB?
function dy = rate_equation(t,y) dy = zeros(2,1); ni=0.9; Lambda= 1.55*10^-6; q= 1.602*10^-19; V= 1.75*10^16; a= 0.5*10^-20; E= 1*10^-22; Tau= 2.1*10^-9; Ntr= 1*10^24; Gamma= 0.3; B= 1*10^-16; Alphai= 3000; Bsp= 1*10^-4; ng= 3.7; R1=0.32; R2= 0.32; L= 350*10^-6; Alpham =...- vinny
- Post #2
- Forum: Advanced Physics Homework Help
-
V
Laser Rate Equation Using ODE45 in MATLAB?
Hi, I've attached the problem that I'm trying to solve. I've also done the manual calculations to calculate Ithreshold. I'm not very good with MATLAB and I need MATLAB code for laser rate equations and I also need to plot LI characteristic of the laser. I_th=qV/(η_i τ) N_th=qV/(η_i τ)...- vinny
- Thread
- Laser Ode45 Rate
- Replies: 2
- Forum: Advanced Physics Homework Help