Professional Documents
Culture Documents
Overview
Oneofthebestwaystolearnthematerialinthiscourseisthroughusingacomputer.MATLABisa powerfulsoftwarepackagewhichisveryusefulforgenerating,processing,andplottingsignals,and insightintomanysignalprocessingconceptscanbegainedthroughusingit.Thisprojectisprimarily designedtogetyoufamiliarwithusingMATLAB. TheprojectBasicSignals,Systems,andtheDFTisidenticaltothisprojectwiththeadditionofaDFT exercise. YoumayfindthediarycommandusefulformaintainingahistoryofyourMATLABsession.Other commandsyoumayfindusefulincludesubplot,orient tall,andorient landscape.Toget informationaboutafunctionanditsusage,usetheMATLABhelpcommand,e.g.help subplot, help filter,etc.
BasicSignals
1. Generateandplot(usingMATLAB'Sstemcommand)thesequence x[n]=(0.95)ncos(/20n) for0n63.NotethatMATLAB'Sindexingforthefirstelementstartswith 1andnot0,soyou willhavetoadjustforthisinyourplot. 2. ThefollowingisasimpleexampleofaMATLABfunctionframpwhichgeneratesanNpoint rampx[n]=nfor1nN.TheinputargumentisNandthefunctiongeneratesthedesired values.
function x=framp(N) % function x=framp(N) % Generates an N-point ramp sequence n=l:N; x=n' ; WriteaMATLABfunction,fcosine,whichwillgeneratethevaluesfromafinitelengthsinusoidA
ImpulseResponseandStepResponse
ConsideranLTIsystemwheretheinputx[n]andoutputy[n]satisfythefollowingdifferenceequation (assumeinitialrestconditions):
f2000a1
SystemFunctions,FrequencyResponse,andPole/ZeroPlots
ThesystemfunctionoftheLTIsysteminExercises3and4isgivenby:
1 1 z 3 H ( z) = 1 2 1 1.85 cos z + 0.83z 18 1+
f2000a1