Professional Documents
Culture Documents
Index
Forums
ChannelModelling
ChannelCoding
VideoLectures
SignalProcessing
SpreadSpectrum
BuyBooks
DigitalModulations
OFDM
PulseShaping
Feedback
MatlabCodes
EstimationTheory
Bookreviews
Tips&Tricks
MatlabcodeforRScodes
Mathuranathan
October19,2008
ChannelCoding,LatestArticles,MatlabCodes,ReedSolomoncodes
RandomProcess
GrabThisEbookToday
0Comments
ItsbeentoolongsinceIposted.Forakickstart,
iamcontinuingthetheoryonRScoding.
HereisasimpleMatlabcode(whichcanbefoundinMatlabHelp,postedherewithalittlebitdetailed
explanation)forbetterunderstandingofRScode
%MatlabCodeforRScodinganddecoding
n=7k=3%Codewordandmessagewordlengths
m=3%Numberofbitspersymbol
msg=gf([523017361],m)%Twoksymbolmessagewords
%messagevectorisdefinedoveraGaloisfieldwherethenumbermust
%rangefrom0to2^m1
codedMessage=rsenc(msg,n,k)%Twonsymbolcodewords
SearchArticles
dmin=nk+1%displaydmin
Search
t=(dmin1)/2%diplayerrorcorrectingcapabilityofthecode
%GeneratenoiseAdd2contiguoussymbolerrorswithfirstword
Participate
%2discontiguoussymbolerrorswithsecondwordand3distributedsymbol
%errorstolastword
noise=gf([000230060100005060040],m)
received=noise+codedMessage
%deccontainsthedecodedmessageandcnumerrcontainsthenumberof
%symbolserrorscorrectedforeachrow.Alsoifcnumerr(i)=1itindicates
%thattheithrowcontainsunrecoverableerror
[dec,cnumerr]=rsdec(received,n,k)
FollowUs!
%printtheoriginalmessageforcomparison
msg
DigitalCommunicatio
5,105likes
%Givenbelowistheoutputoftheprogram.Onlydecodedmessage,cnumerrandoriginal
%messagearegivenhere(withcommentsinline)
%ThedefaultprimitivepolynomialoverwhichtheGFisdefinedisD^3+D+1(whichis1011>11in
decimal).
dec=GF(2^3)array.Primitivepolynomial=D^3+D+1(11decimal)
Arrayelements=
523
017
LikePage
2friendslikethis
ShopNow
667
GaussianWaves
Follow
cnumerr=
+1
+ 373
2
2
1>>>Errorinlastrow>thiserrorisduetothefactthatwehaveadded3distributederrorswiththelast
rowwhereastheRScodecancorrectonly2errors.Comparethedecodedmessagewithoriginalmessage
givenbelowforconfirmation
Ratings
SimulationofDigitalCommunicationSystems
UsingMatlab[eBook]SecondEdition
%Originalmessageprintedforcomparison
msg=GF(2^3)array.Primitivepolynomial=D^3+D+1(11decimal)
71votes
HowtoplotFFTusingMatlabFFTofbasic
signals:SineandCosinewaves
Arrayelements=
23votes
SimulationandAnalysisofWhiteNoisein
523
Matlab
017
TopbooksonbasicsofCommunicationSystems
20votes
361
12votes
MIMODiversityandSpatialMultiplexing
Reference:
[1]MathematicsbehindRScodesBernardSklarClickHere
11votes
QPSKmodulationandDemodulation
10votes
FFTandSpectralLeakage
9votes
Mathuranathan
MathuranathanViswanathanFounderandAuthor@gaussianwaves.comwhich
hasgarneredworldwidereadership.Heisamastersincommunicationengineering
andhas7yearsoftechnicalexpertiseinchannelmodelingandhasworkedinvarious
technologiesrangingfromreadchanneldesignforharddrives,GSM/EDGE/GPRS,
RecentPosts
HowtointerpretFFTresultsobtaining
magnitudeandphaseinformation
OFDM,MIMO,3GPPPHYlayerandDSL.
Healsospecializesintutoringonvarioussubjectslikesignalprocessing,random
HowtoInterpretFFTresultscomplexDFT,
frequencybinsandFFTShift
process,digitalcommunicationetc..,
Lauched:NewQ&Aforumfordiscussions
LinkedInProfile
SignificanceofRMS(RootMeanSquare)value
InvitationtoSubmityourworkforpublicationat
gaussianwaves.com
PhysicalTelepresence:SaygoodbyetoSkype,
Facetime:Thisisthefutureofcommunication.
Sharethis:
Share
Tweet
Share
Share
submit
More
HowtogenerateAWGNnoiseinMatlab/Octave
(withoutusinginbuiltawgnfunction)
HardwareImplementationofGoldcode
generator
AboutMathuranathan
MathuranathanViswanathanFounderandAuthor@gaussianwaves.comwhichhasgarneredworldwidereadership.
Heisamastersincommunicationengineeringandhas7yearsoftechnicalexpertiseinchannelmodelingandhas
workedinvarioustechnologiesrangingfromreadchanneldesignforharddrives,GSM/EDGE/GPRS,OFDM,MIMO,
3GPPPHYlayerandDSL.Healsospecializesintutoringonvarioussubjectslikesignalprocessing,randomprocess,
digitalcommunicationetc..,LinkedInProfile
ViewallpostsbyMathuranathan
ConstructingtheAutoCorrelationMatrixin
Matlab
ConstructingarectangularconstellationforM
QAMusingKarnaughMapwalks
CapacityofaMIMOsystemoverFading
Channels
ErgodicCapacityofaSISOsystemovera
RayleighFadingchannelSimulationinMatlab
CapacityofaSISOsystemoverafadingchannel
CharacterizingaMIMOchannelChannel
StateInformation(CSI)andConditionnumber
MIMODiversityandSpatialMultiplexing
IntroductiontoMultipleAntennaSystems
ChirpSignalFrequencySweepingFFTand
powerspectraldensity
GeneratingBasicSignalsGaussianPulseand
PowerSpectralDensityusingFFT
0Comments
Recommend
Gaussianwaves
Share
Login
SortbyBest
GeneratingBasicsignalsRectangularPulse
andPowerSpectralDensityusingFFT
GeneratingBasicsignalsSquareWaveand
PowerSpectralDensityusingFFT
Startthediscussion
RecentComments
Bethefirsttocomment.
MathuranathanDara_parsavand,Thanksfor
addingyourinsightsan...
WHAT'STHIS?
ALSOONGAUSSIANWAVES
GeneratingBasicSignalsGaussianPulse
andPowerSpectralDensityusingFFT
7commentsayearago
ChannelmodelinganIntroduction
3comments2yearsago
sudheeshpaiDoyouhaveanexamplein
LingarajkadanavarHellothisisLingaraj,doing
mtechinbelgaum.Ihaveaprobleminfinding
powerspectraldensityusingtimedomain
approach,ihave
matlabfordatatransmissionthroughfastfading
channels
dara_parsavandMathuranathan,Goodpoint
aboutcontext.Iagree...
ChirpSignalFrequencySweepingFFT
andpowerspectraldensity
IntroductiontoCramerRaoLowerBound
(CRLB)
TariqDear@dara_parsavand:disqus,Ireally
2commentsayearago
2comments2yearsago
appreciate...
MathuranathanPleasecheckthereferences
MathuranathanFixedtheissue.Pleasereload
below:http://rfmw.em.keysight.com/wi...
http://perso.enslyon.fr/patri...
thepage.Thanksforinforming.
sivakumarreddySoliddiscussion...thnkuso
Subscribe
AddDisqustoyoursite
ReedSolomonCodesIntroduction
muchforsharing........
Privacy
ProcedureforplottinganyPDFinMatlab
MathuranathanThat'snotnecessarilytrue.
Phasenoiseassumptio...
dara_parsavandIfyoufirstgenerateareal
noisesignalx,with...
MichaelSchwagerHi,I'mtryingtofigureout
howtoconvertthela...
MathuranathanGoodcatch.YeahImissedthe
1/Fspartintheco...
nonamemethod:sumofsinusodialmodelof
channel???w...
SSSIthinkSebaisright.Ifyouseethecode
suppose...
SubscribeToGaussianwavesViaEmail
EnteryouremailaddresstosubscribetothisWebsite
andreceivenotificationsofnewarticlesbyemail.
Join20othersubscribers
EmailAddress
Subscribe
Tags
ARARMAARMAmodelAutoCorrelationAuto
regressive
AWGNBPSKChannelCapacityChannel
CodingChannelModellingcholeskyCramer
RaoLowerBoundCRLBCrossCorrelation
DigitalModulations
EstimationFadingFFT
FisherInformationFisherMatrixFourier
AnalysisFouriertransformgraycodeMQAM
MatlabCodematrixalgebra
MaximumLikelihoodEstimationMinimum
VarianceUnbiasedEstimatorMLEMulticarrier
ModulationOFDMOrthogonalFrequencyDivision
MultiplexingoversamplingpositivedefinitePower
spectralDensityPSDPulseShapingRandom
Process RandomVariablesRayleighScoreShannon
Capacity
SignalProcessingSpread
SpectrumTips&Tricks
CopyrightNotice
Thearticlesandtheprogramming
codesappearinginthiswebsiteare
theintellectualpropertiesofthe
respectiveauthorsandarelicensed
underCreativeCommons:
AttributionNonCommercial
ShareAlike3.0License.Ifyoucopy
andreproducetheworks,thenyou
mustattributetheworkstothe
respectiveauthors.Copyright
infringementswillbedealtwith
severly.
Copyright2015.GaussianWaves