42 views

Uploaded by neek4u

Attribution Non-Commercial (BY-NC)

- Block Diagram Representation
- Cellphone Jammer report
- UG104223 Cellphone Jammer
- suman-Cellphone-jammer-complete-notes
- m4l18
- accelerometers
- Cellphone Jammer - Arduino
- 7278434 Cellphone Jammer 2
- Control Systems CE2013 Lab8
- LEM
- Solution Matlab Part Assignment 4
- CSTR
- Homework 1 Chapter 1
- Image Filtering and Hybrid Images
- Control Tutorials for MATLAB and Simulink - Cruise Control_ System Modeling
- Lecture 2-Block Diagram Reduction Techniques
- lab3
- v2_2
- ANovel Compact Ultra-Wideband Bandpass Filter Using a Microstrip Stepped-Impedance Four-Modes Resonator
- Blockdiagram Answer

You are on page 1of 3

clear;

% Parameters of the Gaussian filter:

n1=10;sigma1=3;n2=10;sigma2=3;theta1=0;

% The amplitude of the noise:

noise=0.1;

[w,map]=gifread('lena.gif');

x=ind2gray(w,map);

filter1=d2gauss(n1,sigma1,n2,sigma2,theta);

x_rand=noise*randn(size(x));

y=x+x_rand;

f1=conv2(x,filter1,'same');

rf1=conv2(y,filter1,'same');

figure(1);

subplot(2,2,1);imagesc(x);

subplot(2,2,2);imagesc(y);

subplot(2,2,3);imagesc(f1);

subplot(2,2,4);imagesc(rf1);

colormap(gray);

%%%%%%%%%%%%%% End of the main.m file %%%%%%%%%%%%%%%

---------- Post added at 05:23 AM ---------- Previous post was at 05:22 AM ----------

clear;

Ts=1/1e3; % tx rate = 10k bps

NA=10000;

A=floor(rand(1,NA)+0.5);

%A=randint(1,NA);

input=A;

G=[1 0 0; 1 0 1; 1 1 1];

k=1;

N=length(channel_output);

SNRdB= -10:5:20;

SNR=10.^(SNRdB/10);

Counter=zeros(1,length(SNRdB));

loop=0;

%************************************************* **************

% AWGN + fading *

%************************************************* **************

Fd=66; % Actual fading rate

fm=round(Fd*NA*Ts);

xin=randn(1,(NA+2)*3);

yin=randn(1,(NA+2)*3);

%Loop for all values of frequencies and truncate at just before f=fm

for f=1fm-1)

filter(f)=1.5/(pi*fm*sqrt(1-(f/fm)^2));

end

for f=(fm-1)NA+2)*3

filter(f)=0;

end

xout=xin.*filter;

yout=yin.*filter;

xifft=real(ifft(xout));

yifft=real(ifft(yout));

std_x=std(xifft);

std_y=std(yifft);

xifft=xifft/std_x/sqrt(2);

yifft=yifft/std_y/sqrt(2);

%Sum the square the of the IFFT and take the square root of it

rx=sqrt(xifft.^2+yifft.^2);

%************************************************* ***************

%Calculate for all value of SNRdB in AWGN + fading

%************************************************* ***************

loop=0;

for b=sqrt(SNR) %b is the signal level

loop=loop+1;

dfad=0;

for n=1NA+2)*3 %n = no of bits

x=randn;

t=channel_output(n);

if t>=0.5

a=b*rx(n);

r=a+x;

if r<0

dfad=dfad+1; % error has occured, increase counter

Df(n)=0;

else

Df(n)=1;

end

else

a=(-b)*rx(n);

r=a+x;

if r>0

dfad=dfad+1;

Df(n)=1;

else

Df(n)=0;

end

end

Counterf(loop)=dfad; % w/o decode

end

output=viterbi(G,k,Df); % E is output of decoder

zf=0;

v=1;

for v=v:1:length(A);

if xor(input(1,v),output(1,v))==1

zf=zf+1;

end

end

Counter_wcf(loop)=zf;

end% loop for signal (b) in AWGN + fading

Pef=Counterf/N;

%semilogy(SNRdB,Pef,'b');

%hold on;

%plot simulation in AWGN + fading with coding

Pe1f=Counter_wcf/NA;

save D1_66SNRdBPe1fPef

%semilogy(SNRdB,Pe1f,'b'); %D=1 no interleaving

%hold on;

---------- Post added at 05:25 AM ---------- Previous post was at 05:23 AM ----------

clear;

Ts=1/1e3; % tx rate = 10k bps

NA=10000;

A=floor(rand(1,NA)+0.5);

%A=randint(1,NA);

input=A;

G=[1 0 0; 1 0 1; 1 1 1];

k=1;

N=length(channel_output);

SNRdB= -10:5:20;

SNR=10.^(SNRdB/10);

Counter=zeros(1,length(SNRdB));

loop=0;

- Block Diagram RepresentationUploaded byHarsha
- Cellphone Jammer reportUploaded byRKrishnaMishra
- UG104223 Cellphone JammerUploaded byDESMALANILS48
- suman-Cellphone-jammer-complete-notesUploaded bySrikanth Thulluri
- m4l18Uploaded byPradeep Kumar
- accelerometersUploaded byఅయ్యలసోమయాజుల సాయి శివ
- Cellphone Jammer - ArduinoUploaded byJorge Muñoz
- 7278434 Cellphone Jammer 2Uploaded bySisir Pattanayak
- Control Systems CE2013 Lab8Uploaded byHassan Amjad
- LEMUploaded byAlan Rosas
- Solution Matlab Part Assignment 4Uploaded byyeahright2012
- CSTRUploaded byRuri Agung Wahyuono
- Homework 1 Chapter 1Uploaded bySantiago Orellana C
- Image Filtering and Hybrid ImagesUploaded byElvis ChiChung Leung
- Control Tutorials for MATLAB and Simulink - Cruise Control_ System ModelingUploaded bydialauchenna
- Lecture 2-Block Diagram Reduction TechniquesUploaded byNoor Ahmed
- lab3Uploaded byMark Malupangue
- v2_2Uploaded byfive2ninex
- ANovel Compact Ultra-Wideband Bandpass Filter Using a Microstrip Stepped-Impedance Four-Modes ResonatorUploaded byShrutiAwasthi
- Blockdiagram AnswerUploaded byHuru Hara
- Buysell Signal Generation Module 2Uploaded bymaddy_i5
- Tunable Dig FiltersUploaded byChetan Sharma
- Control Systems IntroductionsUploaded byAlan Tam
- filt8-2Uploaded byDiwana Taker
- ENGR 315 - Assignment 1Uploaded byMike-and Crystal Schenk
- Lecture Time Domain Analysis of 1st Order SystemsUploaded byFahadKh
- DspUploaded byrobomasterguy
- MCLECTURE9.PPTUploaded byteknikpembakaran2013
- 3 Time Domain Analysis - Advanced Control Engineering BURNS Pp 35-62Uploaded byOscar David Puentes Guerrero
- Lab Experiment2.docxUploaded bytilahun aligaz

- 8085 Microprocessor Lab ManualUploaded byMukulSingh
- Instruction Set of 8085Uploaded byTanmoy Dey
- SDRWBUploaded byneek4u
- 2008 MH-WiFiRe Multi-Hop Extension to WiFiRe -ThesisUploaded byneek4u
- Space Time Code DivisionUploaded byneek4u
- UWBin Fading ChannelsUploaded byneek4u
- Seminar Report FormatUploaded byMahesh Chunkhade
- Inspired LTE SUI3 SimulatorUploaded byneek4u
- Durex - Product BookletUploaded byazk_khan
- Final Version ReportUploaded byRajeshwar Singh
- Installing NCTUNSUploaded byneek4u

- fivecornerUploaded byPebrian Syah
- Manual Allen Hearth.docUploaded byMalboro Saula
- m.tecl labUploaded byMegha Shree Naidu
- Power Line CommunicationUploaded byPraveen Mittal
- Instrument GuideUploaded bySalmonEla
- Review of Mobile Tower Radiation Effects on Human and Mitigation TechniquesUploaded byEditor IJRITCC
- (APPENDIX 1) Description of TermsUploaded byFACE BOOK
- Gallien-Krueger-MB112-Manual.pdfUploaded byXavierGonzalez
- PWMUploaded byJonathan Tee Wei Hsien
- Prime TimeUploaded bypdnoob
- 06156685Uploaded byMurahari Danam
- TN-102_IRIG-BUploaded byJeffandCitadel Godinez
- 2G Refarming Pre Drive Report1.docxUploaded byJitPalSinghDhanjal
- 93104v00 RF Whitepaper-finalUploaded bySrinivas Chary
- OSN 2500 Hardware Description ISSUE 1 30Uploaded byAhmad Sayed
- Advanced Motion Controls B30A8Uploaded byServo2Go
- Communication Aided Protection SchemesUploaded bypvenky_kkd
- Discover the AREST Framework by Marco SchwartzUploaded byJose Fernandez de Velasco
- mesfetUploaded byDavid Lopez
- Carlo GavazziUploaded byZeth Ram
- MT-028Uploaded bySuwitno
- C-00 & ER 91APRIL.MAY-2012Uploaded byJohn Sanda
- AOPEN Hardware Brochure 2017Uploaded byMarisagarcia2014
- Principles for Controlling HarmonicsUploaded byEyad A. Feilat
- SONY_Minicomponente_MHC-V6D.pdfUploaded by0limpero
- Xirrus XD SeriesUploaded byer0z
- ROC413_ROQ425_enUploaded byAnkit Lohiya
- Broad LinkUploaded byscribdqpd
- Flex-SpanUploaded byAldo EC
- Electronics II Lab Manual 4Uploaded byVivekKhandelwal