Matlab - Potencia Optica

 
Vista:

Potencia Optica

Publicado por julio salcedo (2 intervenciones) el 16/08/2013 01:49:49
Tengo un script que no me da respuesta:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
%Potencia interna generada en el dispositivo LED
clear all;
close all;
clc;
 
tuo_r = input('Enter the radiative recombination time in nano seconds: ');
tuo_nr = input('Enter the non-radiative recombination time in nano seconds: ');
C = input('Enter the velocity of light in free space: ');
 
%ppp
 
h = input('Enter the value of Planks constant: ');
q = input('Enter the value of charge of one electron: ');
I = input('Enter the value of Drive current in Amperes: ');
 
Etta_internal = 1/(1+(tuo_r/tuo_nr));
 
n=1;
 
for Lambda=800:50:1600
 
	Pinternal(Lambda+50) = Etta_internal*(h*C/q)*(I/Lambda);
	PO= Pinternal*1000;
	Pot(n)=PO;
	n=n+1;
	disp('Pot. Ópt. entreg. LED en mW. para %d nm. = %f ',Lambda, PO);
 
end
 
Lambda=800:50:1600
 
plot(Lambda,Pot,'b--','linewidth',3);
title('POTENCIA INTERNA GENERADA EN EL DISPOSITIVO LED');
xlabel('Longitud de Onda (nm.)');
ylabel('Potencia Óptica (mW.)');
grid;
legend('CURVA Long. Onda vs. Pot. Ópt.');


____________________________


cuando el programa pide datos, se deben ingresar los siguientes:

Radiative recombination time: 25
Non-radiative recombination time: 90
Velocity of light in free space: 3e08
Planks constant: 6.624e-34
Charge of one electron: 1.602e-19
Drive current: 35e-03
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de JOSE JEREMIAS CABALLERO
Val: 6.975
Oro
Ha mantenido su posición en Matlab (en relación al último mes)
Gráfica de Matlab

Potencia Optica

Publicado por JOSE JEREMIAS CABALLERO (5917 intervenciones) el 16/08/2013 09:19:13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%Potencia interna generada en el dispositivo LED
clear all;
close all;
tuo_r = input('Enter the radiative recombination time in nano seconds: ');
tuo_nr = input('Enter the non-radiative recombination time in nano seconds: ');
C = input('Enter the velocity of light in free space: ');
%ppp
h = input('Enter the value of Planks constant: ');
q = input('Enter the value of charge of one electron: ');
I = input('Enter the value of Drive current in Amperes: ');
Etta_internal = 1/(1+(tuo_r/tuo_nr));
n=1;
for Lambda=800:50:1600
	Pinternal = Etta_internal*(h*C/q)*(I/Lambda);
	PO= Pinternal*1000;
	Pot(n)=PO;
	n=n+1;
	fprintf('Pot. Ópt. entreg. LED en mW. para %d nm. = %f\n ',Lambda, PO);
end
Lambda=800:50:1600;
plot(Lambda,Pot,'b--','linewidth',3);
title('POTENCIA INTERNA GENERADA EN EL DISPOSITIVO LED');
xlabel('Longitud de Onda (nm.)');
ylabel('Potencia Óptica (mW.)');
grid;
legend('CURVA Long. Onda vs. Pot. Ópt.');



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
>> potencia_optica1
Enter the radiative recombination time in nano seconds: 25
Enter the non-radiative recombination time in nano seconds: 90
Enter the velocity of light in free space: 3e08
Enter the value of Planks constant: 6.624e-34
Enter the value of charge of one electron: 1.602e-19
Enter the value of Drive current in Amperes: 35e-03
Pot. Ópt. entreg. LED en mW. para 800 nm. =  0.0000000425
 Pot. Ópt. entreg. LED en mW. para 850 nm. =  0.0000000400
 Pot. Ópt. entreg. LED en mW. para 900 nm. =  0.0000000378
 Pot. Ópt. entreg. LED en mW. para 950 nm. =  0.0000000358
 Pot. Ópt. entreg. LED en mW. para 1000 nm. =  0.0000000340
 Pot. Ópt. entreg. LED en mW. para 1050 nm. =  0.0000000324
 Pot. Ópt. entreg. LED en mW. para 1100 nm. =  0.0000000309
 Pot. Ópt. entreg. LED en mW. para 1150 nm. =  0.0000000295
 Pot. Ópt. entreg. LED en mW. para 1200 nm. =  0.0000000283
 Pot. Ópt. entreg. LED en mW. para 1250 nm. =  0.0000000272
 Pot. Ópt. entreg. LED en mW. para 1300 nm. =  0.0000000261
 Pot. Ópt. entreg. LED en mW. para 1350 nm. =  0.0000000252
 Pot. Ópt. entreg. LED en mW. para 1400 nm. =  0.0000000243
 Pot. Ópt. entreg. LED en mW. para 1450 nm. =  0.0000000234
 Pot. Ópt. entreg. LED en mW. para 1500 nm. =  0.0000000227
 Pot. Ópt. entreg. LED en mW. para 1550 nm. =  0.0000000219
 Pot. Ópt. entreg. LED en mW. para 1600 nm. =  0.0000000212



Saludos.
JOSE JEREMÍAS CABALLERO
Asesorías en Matlab
programador en matlab
Servicios de programación matlab
[email protected]


http://matlabcaballero.blogspot.com

http://www.lawebdelprogramador.com/foros/Matlab/1371532-FORMA_DE_APRENDER_MATLAB.html
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar