SlideShare una empresa de Scribd logo
1 de 7
Communicatio 
n optique 
Compte rendu TP1 
TOUATI KARIM / IMI 4 /Groupe E
compte rendu 
communication optique 
modulation d'amplitude 
>> fs=100; 
>> t=[0:2*fs+1]'/fs; 
>> fc=10; 
>> x=sin(2*pi*t); 
>> ydouble=ammod(x,fc,fs); 
>> zdouble=fft(ydouble); 
>> zdouble=abs(zdouble(1:length(zdouble)/2+1)); 
>> subplot(2,1,1); 
>> frqdouble=[0:length(zdouble)-1]*fs/length(zdouble)/2; 
>> title('spectrum of double side-bandsignal'); 
>> plot(frqdouble,zdouble); 
>> subplot(2,1,1); 
>> ydouble=ammod(x,fc,fs,0,1); 
>> plot(frqdouble,zdouble); 
>> subplot(2,1,1); 
>> ydouble=ammod(x,fc,fs,0,1); 
>> zdouble=fft(ydouble); 
>> zdouble=abs(zdouble(1:length(zdouble)/2+1)); 
>> subplot(2,1,1); 
>> frqdouble=[0:length(zdouble)-1]*fs/length(zdouble)/2; 
>> title('spectrum of double side-bandsignal'); 
>> plot(frqdouble,zdouble); 
>> ydouble=ssbmod(x,fc,fs); 
>> zdouble=fft(ydouble); 
>> zdouble=abs(zdouble(1:length(zdouble)/2+1)); 
>> subplot(2,1,1); 
>> frqdouble=[0:length(zdouble)-1]*fs/length(zdouble)/2; 
>> plot(frqdouble,zdouble); 
>> ydouble=ssbmod(x,fc,fs,1,'upper'); 
>> zdouble=fft(ydouble); 
>> zdouble=abs(zdouble(1:length(zdouble)/2+1)); 
>> subplot(2,1,1); 
>> frqdouble=[0:length(zdouble)-1]*fs/length(zdouble)/2; 
>> plot(frqdouble,zdouble); 
2
Aprés la modulation le signal est translaté autour de Fc: 
0 5 10 15 20 25 30 35 40 45 50 
100 
80 
60 
40 
20 
0 
plot(t,x,t,ydouble); 
0 0.5 1 1.5 2 2.5 
1 
0.5 
0 
-0.5 
-1 
-1.5 
3
modulation de fréquence d'un signal 
fs=8000; 
>> fc=3000; 
>> t=[0:50:fs]'/fs; 
>> s1=sin(2*pi*300*t)+2*sin(2*pi*600*t); 
>> s2=sin(2*pi*150*t)+2*sin(2*pi*900*t); 
>> x=[s1,s2]; 
>> dev=50; 
>> y=fmmod(x,fc,fs,dev); 
>> z=fmdemod(y,fc,fs,dev); 
>> figure(1),plot(y);title 
0 20 40 60 80 100 120 140 160 180 
1 
0.5 
0 
-0.5 
-1 
4
figure(2),plot(z);tilte 
5 
0 
-5 
-10 
-15 
-20 
-25 
0 20 40 60 80 100 120 140 160 180 
m=16; 
>> k=log2(m); 
>> n=3e4; 
>> x=randint(n,1); 
>> stem(x(1:40),'filed'); 
>> stem(x(1:40),'filled'); 
>> title('random bits'); 
>> xlabel('bit index'); 
>> ylabel('binarg value'); 
>> Nxsym=length(xsym);* 
>> xsym=bi2de(reshape(x,k,length(x)/k).','left-msb'); 
>> Nxsym=length(xsym); 
>> title('random symbols'); 
>> xlabel('symbol index') 
>> ylabel('integer value'); 
>> xlabel('symbol index'); 
5
1 
0.5 
0 
random symbols 
0 5 10 15 20 25 30 35 40 
symbol index 
integer value 
6
1 
0.5 
0 
random symbols 
0 5 10 15 20 25 30 35 40 
symbol index 
integer value 
6

Más contenido relacionado

La actualidad más candente

MTH3101 Tutor 7 lagrange multiplier
MTH3101  Tutor 7 lagrange multiplierMTH3101  Tutor 7 lagrange multiplier
MTH3101 Tutor 7 lagrange multiplierDrradz Maths
 
Tele4653 l7
Tele4653 l7Tele4653 l7
Tele4653 l7Vin Voro
 
Sampling and filtering
Sampling and filteringSampling and filtering
Sampling and filteringgayatrigayu1
 
Copia de derivadas tablas
Copia de derivadas tablasCopia de derivadas tablas
Copia de derivadas tablasGeral Delgado
 
Matlab 2
Matlab 2Matlab 2
Matlab 2asguna
 
Ejercicios d nucleo e imagen
Ejercicios d nucleo e imagenEjercicios d nucleo e imagen
Ejercicios d nucleo e imagenguestf52a225
 
Prim1_secx
Prim1_secxPrim1_secx
Prim1_secxofisico
 
Tele3113 wk6wed
Tele3113 wk6wedTele3113 wk6wed
Tele3113 wk6wedVin Voro
 
Markov Model for TMR System with Repair
Markov Model for TMR System with RepairMarkov Model for TMR System with Repair
Markov Model for TMR System with RepairSujith Jay Nair
 
Sheet with useful_formulas
Sheet with useful_formulasSheet with useful_formulas
Sheet with useful_formulasHoopeer Hoopeer
 
10CSL67 CG LAB PROGRAM 1
10CSL67 CG LAB PROGRAM 110CSL67 CG LAB PROGRAM 1
10CSL67 CG LAB PROGRAM 1Vanishree Arun
 
Shaderx5 2.6normalmappingwithoutprecomputedtangents 130318 (1)
Shaderx5 2.6normalmappingwithoutprecomputedtangents 130318 (1)Shaderx5 2.6normalmappingwithoutprecomputedtangents 130318 (1)
Shaderx5 2.6normalmappingwithoutprecomputedtangents 130318 (1)Kyuseok Hwang(allosha)
 

La actualidad más candente (19)

MTH3101 Tutor 7 lagrange multiplier
MTH3101  Tutor 7 lagrange multiplierMTH3101  Tutor 7 lagrange multiplier
MTH3101 Tutor 7 lagrange multiplier
 
Lec 3-mcgregor
Lec 3-mcgregorLec 3-mcgregor
Lec 3-mcgregor
 
Tele4653 l7
Tele4653 l7Tele4653 l7
Tele4653 l7
 
Sampling and filtering
Sampling and filteringSampling and filtering
Sampling and filtering
 
Copia de derivadas tablas
Copia de derivadas tablasCopia de derivadas tablas
Copia de derivadas tablas
 
Sol71
Sol71Sol71
Sol71
 
Img 0008
Img 0008Img 0008
Img 0008
 
Dsp final
Dsp finalDsp final
Dsp final
 
Matlab 2
Matlab 2Matlab 2
Matlab 2
 
My MSc. Project
My MSc. ProjectMy MSc. Project
My MSc. Project
 
List of formulae
List of formulaeList of formulae
List of formulae
 
Ejercicios d nucleo e imagen
Ejercicios d nucleo e imagenEjercicios d nucleo e imagen
Ejercicios d nucleo e imagen
 
Prim1_secx
Prim1_secxPrim1_secx
Prim1_secx
 
Tele3113 wk6wed
Tele3113 wk6wedTele3113 wk6wed
Tele3113 wk6wed
 
Markov Model for TMR System with Repair
Markov Model for TMR System with RepairMarkov Model for TMR System with Repair
Markov Model for TMR System with Repair
 
Sheet with useful_formulas
Sheet with useful_formulasSheet with useful_formulas
Sheet with useful_formulas
 
10CSL67 CG LAB PROGRAM 1
10CSL67 CG LAB PROGRAM 110CSL67 CG LAB PROGRAM 1
10CSL67 CG LAB PROGRAM 1
 
Laplace1
Laplace1Laplace1
Laplace1
 
Shaderx5 2.6normalmappingwithoutprecomputedtangents 130318 (1)
Shaderx5 2.6normalmappingwithoutprecomputedtangents 130318 (1)Shaderx5 2.6normalmappingwithoutprecomputedtangents 130318 (1)
Shaderx5 2.6normalmappingwithoutprecomputedtangents 130318 (1)
 

Similar a Compte rendu com op touati

Noise detection from the signal matlab code, Signal Diagnosis
Noise detection from the signal matlab code, Signal Diagnosis Noise detection from the signal matlab code, Signal Diagnosis
Noise detection from the signal matlab code, Signal Diagnosis Bharti Airtel Ltd.
 
Implementasi FIR filter menggunakan matlab
Implementasi FIR filter menggunakan matlabImplementasi FIR filter menggunakan matlab
Implementasi FIR filter menggunakan matlabmafailmi
 
graphs plotting in MATLAB
graphs plotting in MATLABgraphs plotting in MATLAB
graphs plotting in MATLABApurva Patil
 
Calculus 10th edition anton solutions manual
Calculus 10th edition anton solutions manualCalculus 10th edition anton solutions manual
Calculus 10th edition anton solutions manualReece1334
 
4 matched filters and ambiguity functions for radar signals-2
4 matched filters and ambiguity functions for radar signals-24 matched filters and ambiguity functions for radar signals-2
4 matched filters and ambiguity functions for radar signals-2Solo Hermelin
 
Math quota-cmu-g-455
Math quota-cmu-g-455Math quota-cmu-g-455
Math quota-cmu-g-455Rungroj Ssan
 
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]Henrique Covatti
 
#Import standard math functions from math import import .docx
#Import standard math functions from math import  import .docx#Import standard math functions from math import  import .docx
#Import standard math functions from math import import .docxgertrudebellgrove
 
[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)
[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)
[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)Harrisson David Assis Santos
 
Matlab plotting
Matlab plottingMatlab plotting
Matlab plottingAmr Rashed
 
University of manchester mathematical formula tables
University of manchester mathematical formula tablesUniversity of manchester mathematical formula tables
University of manchester mathematical formula tablesGaurav Vasani
 
Introduction to Signal Processing Orfanidis [Solution Manual]
Introduction to Signal Processing Orfanidis [Solution Manual]Introduction to Signal Processing Orfanidis [Solution Manual]
Introduction to Signal Processing Orfanidis [Solution Manual]slyhamm
 
脳の計算論 第3章「リズム活動と位相応答」
脳の計算論 第3章「リズム活動と位相応答」脳の計算論 第3章「リズム活動と位相応答」
脳の計算論 第3章「リズム活動と位相応答」Kohei Ichikawa
 

Similar a Compte rendu com op touati (20)

Noise detection from the signal matlab code, Signal Diagnosis
Noise detection from the signal matlab code, Signal Diagnosis Noise detection from the signal matlab code, Signal Diagnosis
Noise detection from the signal matlab code, Signal Diagnosis
 
Implementasi FIR filter menggunakan matlab
Implementasi FIR filter menggunakan matlabImplementasi FIR filter menggunakan matlab
Implementasi FIR filter menggunakan matlab
 
graphs plotting in MATLAB
graphs plotting in MATLABgraphs plotting in MATLAB
graphs plotting in MATLAB
 
Calculus 10th edition anton solutions manual
Calculus 10th edition anton solutions manualCalculus 10th edition anton solutions manual
Calculus 10th edition anton solutions manual
 
4 matched filters and ambiguity functions for radar signals-2
4 matched filters and ambiguity functions for radar signals-24 matched filters and ambiguity functions for radar signals-2
4 matched filters and ambiguity functions for radar signals-2
 
Math quota-cmu-g-455
Math quota-cmu-g-455Math quota-cmu-g-455
Math quota-cmu-g-455
 
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]
 
#Import standard math functions from math import import .docx
#Import standard math functions from math import  import .docx#Import standard math functions from math import  import .docx
#Import standard math functions from math import import .docx
 
Image transforms
Image transformsImage transforms
Image transforms
 
[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)
[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)
[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)
 
Sampling
SamplingSampling
Sampling
 
Matlab plotting
Matlab plottingMatlab plotting
Matlab plotting
 
Kunci jawaban fisika
Kunci jawaban fisikaKunci jawaban fisika
Kunci jawaban fisika
 
University of manchester mathematical formula tables
University of manchester mathematical formula tablesUniversity of manchester mathematical formula tables
University of manchester mathematical formula tables
 
Calculus III
Calculus IIICalculus III
Calculus III
 
4. cft
4. cft4. cft
4. cft
 
Sk7 ph
Sk7 phSk7 ph
Sk7 ph
 
Sk7 ph
Sk7 phSk7 ph
Sk7 ph
 
Introduction to Signal Processing Orfanidis [Solution Manual]
Introduction to Signal Processing Orfanidis [Solution Manual]Introduction to Signal Processing Orfanidis [Solution Manual]
Introduction to Signal Processing Orfanidis [Solution Manual]
 
脳の計算論 第3章「リズム活動と位相応答」
脳の計算論 第3章「リズム活動と位相応答」脳の計算論 第3章「リズム活動と位相応答」
脳の計算論 第3章「リズム活動と位相応答」
 

Más de hamdinho

Page de garde
Page de gardePage de garde
Page de gardehamdinho
 
Compte rendu tp automatique 1
Compte rendu tp automatique 1Compte rendu tp automatique 1
Compte rendu tp automatique 1hamdinho
 
Compte rendu automatique 2
Compte rendu automatique 2Compte rendu automatique 2
Compte rendu automatique 2hamdinho
 
Tp 3 transmission de donné modulation d'amplitude,de fréquence et de phase
Tp 3 transmission de donné modulation d'amplitude,de fréquence et de phaseTp 3 transmission de donné modulation d'amplitude,de fréquence et de phase
Tp 3 transmission de donné modulation d'amplitude,de fréquence et de phasehamdinho
 
Tp 2 transmission de donné modulation analogique
Tp 2 transmission de donné modulation analogiqueTp 2 transmission de donné modulation analogique
Tp 2 transmission de donné modulation analogiquehamdinho
 
Tp 1 transmission de donné inisiallisation à simulink matlab
Tp 1 transmission de donné inisiallisation à simulink matlabTp 1 transmission de donné inisiallisation à simulink matlab
Tp 1 transmission de donné inisiallisation à simulink matlabhamdinho
 
Final communication optique
Final communication optiqueFinal communication optique
Final communication optiquehamdinho
 

Más de hamdinho (8)

Page de garde
Page de gardePage de garde
Page de garde
 
Compte rendu tp automatique 1
Compte rendu tp automatique 1Compte rendu tp automatique 1
Compte rendu tp automatique 1
 
Compte rendu automatique 2
Compte rendu automatique 2Compte rendu automatique 2
Compte rendu automatique 2
 
But
ButBut
But
 
Tp 3 transmission de donné modulation d'amplitude,de fréquence et de phase
Tp 3 transmission de donné modulation d'amplitude,de fréquence et de phaseTp 3 transmission de donné modulation d'amplitude,de fréquence et de phase
Tp 3 transmission de donné modulation d'amplitude,de fréquence et de phase
 
Tp 2 transmission de donné modulation analogique
Tp 2 transmission de donné modulation analogiqueTp 2 transmission de donné modulation analogique
Tp 2 transmission de donné modulation analogique
 
Tp 1 transmission de donné inisiallisation à simulink matlab
Tp 1 transmission de donné inisiallisation à simulink matlabTp 1 transmission de donné inisiallisation à simulink matlab
Tp 1 transmission de donné inisiallisation à simulink matlab
 
Final communication optique
Final communication optiqueFinal communication optique
Final communication optique
 

Compte rendu com op touati

  • 1. Communicatio n optique Compte rendu TP1 TOUATI KARIM / IMI 4 /Groupe E
  • 2. compte rendu communication optique modulation d'amplitude >> fs=100; >> t=[0:2*fs+1]'/fs; >> fc=10; >> x=sin(2*pi*t); >> ydouble=ammod(x,fc,fs); >> zdouble=fft(ydouble); >> zdouble=abs(zdouble(1:length(zdouble)/2+1)); >> subplot(2,1,1); >> frqdouble=[0:length(zdouble)-1]*fs/length(zdouble)/2; >> title('spectrum of double side-bandsignal'); >> plot(frqdouble,zdouble); >> subplot(2,1,1); >> ydouble=ammod(x,fc,fs,0,1); >> plot(frqdouble,zdouble); >> subplot(2,1,1); >> ydouble=ammod(x,fc,fs,0,1); >> zdouble=fft(ydouble); >> zdouble=abs(zdouble(1:length(zdouble)/2+1)); >> subplot(2,1,1); >> frqdouble=[0:length(zdouble)-1]*fs/length(zdouble)/2; >> title('spectrum of double side-bandsignal'); >> plot(frqdouble,zdouble); >> ydouble=ssbmod(x,fc,fs); >> zdouble=fft(ydouble); >> zdouble=abs(zdouble(1:length(zdouble)/2+1)); >> subplot(2,1,1); >> frqdouble=[0:length(zdouble)-1]*fs/length(zdouble)/2; >> plot(frqdouble,zdouble); >> ydouble=ssbmod(x,fc,fs,1,'upper'); >> zdouble=fft(ydouble); >> zdouble=abs(zdouble(1:length(zdouble)/2+1)); >> subplot(2,1,1); >> frqdouble=[0:length(zdouble)-1]*fs/length(zdouble)/2; >> plot(frqdouble,zdouble); 2
  • 3. Aprés la modulation le signal est translaté autour de Fc: 0 5 10 15 20 25 30 35 40 45 50 100 80 60 40 20 0 plot(t,x,t,ydouble); 0 0.5 1 1.5 2 2.5 1 0.5 0 -0.5 -1 -1.5 3
  • 4. modulation de fréquence d'un signal fs=8000; >> fc=3000; >> t=[0:50:fs]'/fs; >> s1=sin(2*pi*300*t)+2*sin(2*pi*600*t); >> s2=sin(2*pi*150*t)+2*sin(2*pi*900*t); >> x=[s1,s2]; >> dev=50; >> y=fmmod(x,fc,fs,dev); >> z=fmdemod(y,fc,fs,dev); >> figure(1),plot(y);title 0 20 40 60 80 100 120 140 160 180 1 0.5 0 -0.5 -1 4
  • 5. figure(2),plot(z);tilte 5 0 -5 -10 -15 -20 -25 0 20 40 60 80 100 120 140 160 180 m=16; >> k=log2(m); >> n=3e4; >> x=randint(n,1); >> stem(x(1:40),'filed'); >> stem(x(1:40),'filled'); >> title('random bits'); >> xlabel('bit index'); >> ylabel('binarg value'); >> Nxsym=length(xsym);* >> xsym=bi2de(reshape(x,k,length(x)/k).','left-msb'); >> Nxsym=length(xsym); >> title('random symbols'); >> xlabel('symbol index') >> ylabel('integer value'); >> xlabel('symbol index'); 5
  • 6. 1 0.5 0 random symbols 0 5 10 15 20 25 30 35 40 symbol index integer value 6
  • 7. 1 0.5 0 random symbols 0 5 10 15 20 25 30 35 40 symbol index integer value 6