ebook img

Anywhere-anytime signals and systems laboratory : from MATLAB to smartphones PDF

272 Pages·2019·18.11 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Anywhere-anytime signals and systems laboratory : from MATLAB to smartphones

Anywhere-Anytime Signals and Systems Laboratory From MATLAB to Smartphones Second Edition Synthesis Lectures on Signal Processing Editor JoséMoura,CarnegieMellonUniversity SynthesisLecturesinSignalProcessingpublishes80-to150-pagebooksontopicsofinterestto signalprocessingengineersandresearchers.TheLecturesexploitindetailafocusedtopic.Theycan beatdifferentlevelsofexposition-fromabasicintroductorytutorialtoanadvanced monograph-dependingonthesubjectandthegoalsoftheauthor.Overtime,theLectureswill provideacomprehensivetreatmentofsignalprocessing.Becauseofitsformat,theLectureswill alsoprovidecurrentcoverageofsignalprocessing,andexistingLectureswillbeupdatedbyauthors whenjustified. LecturesinSignalProcessingareopentoallrelevantareasinsignalprocessing.Theywillcover theoryandtheoreticalmethods,algorithms,performanceanalysis,andapplications.SomeLectures willprovideanewlookatawellestablishedareaorproblem,whileotherswillventureintoabrand newtopicinsignalprocessing.Bycarefulreviewingthemanuscriptswewillstriveforqualityboth intheLectures’contentsandexposition. Anywhere-AnytimeSignalsandSystemsLaboratory:FromMATLABtoSmartphones, SecondEdition NasserKehtarnavaz,FatemehSaki,andAdrianDuran 2019 Anywhere-AnytimeSignalsandSystemsLaboratory:fromMATLABtoSmartphones NasserKehtarnavazandFatemehSaki 2017 Smartphone-BasedReal-TimeDigitalSignalProcessing NasserKehtarnavaz,ShaneParris,andAbhishekSehgal 2015 AnIntroductiontoKalmanFilteringwithMATLABExamples NarayanKovvali,MaheshBanavar,andAndreasSpanias 2013 SequentialMonteCarloMethodsforNonlinearDiscrete-TimeFiltering MarceloG.S.Bruno 2013 iii ProcessingofSeismicReflectionDataUsingMATLAB™ WailA.MousaandAbdullatifA.Al-Shuhail 2011 Fixed-PointSignalProcessing WayneT.PadgettandDavidV.Anderson 2009 AdvancedRadarDetectionSchemesUnderMismatchedSignalModels FrancescoBandiera,DaniloOrlando,andGiuseppeRicci 2009 DSPforMATLAB™andLabVIEW™IV:LMSAdaptiveFiltering ForesterW.Isen 2009 DSPforMATLAB™andLabVIEW™III:DigitalFilterDesign ForesterW.Isen 2008 DSPforMATLAB™andLabVIEW™II:DiscreteFrequencyTransforms ForesterW.Isen 2008 DSPforMATLAB™andLabVIEW™I:FundamentalsofDiscreteSignalProcessing ForesterW.Isen 2008 TheTheoryofLinearPrediction P.P.Vaidyanathan 2007 NonlinearSourceSeparation LuisB.Almeida 2006 SpectralAnalysisofSignals:TheMissingDataCase YanweiWang,JianLi,andPetreStoica 2006 Copyright©2019byMorgan&Claypool Allrightsreserved.Nopartofthispublicationmaybereproduced,storedinaretrievalsystem,ortransmittedin anyformorbyanymeans—electronic,mechanical,photocopy,recording,oranyotherexceptforbriefquotations inprintedreviews,withoutthepriorpermissionofthepublisher. Anywhere-AnytimeSignalsandSystemsLaboratory:FromMATLABtoSmartphones,SecondEdition NasserKehtarnavaz,FatemehSaki,andAdrianDuran www.morganclaypool.com ISBN:9781681734491 paperback ISBN:9781681734507 ebook ISBN:9781681734514 hardcover DOI10.2200/S00879ED2V01Y201810SPR015 APublicationintheMorgan&ClaypoolPublishersseries SYNTHESISLECTURESONSIGNALPROCESSING Lecture#15 SeriesEditor:JoséMoura,CarnegieMellonUniversity SeriesISSN Print1932-1236 Electronic1932-1694 Anywhere-Anytime Signals and Systems Laboratory From MATLAB to Smartphones Second Edition Nasser Kehtarnavaz, Fatemeh Saki, and Adrian Duran UniversityofTexasatDallas SYNTHESISLECTURESONSIGNALPROCESSING#15 M &C Morgan&cLaypool publishers ABSTRACT A typical undergraduate electrical engineering curriculum incorporates a signals and systems course. The widely used approach for the laboratory component of such courses involves the utilizationofMATLABtoimplementsignalsandsystemsconcepts.Thisbookpresentsanewly developedlaboratoryparadigmwhereMATLABcodesaremadetorunonsmartphones,which most students already possess. This smartphone-based approach enables an anywhere-anytime platformforstudentstoconductsignalsandsystemsexperiments.Thisbookcoversthelabora- toryexperimentsthatarenormallycoveredinsignalsandsystemscoursesanddiscusseshowto run MATLAB codes for these experiments on both Android and iOS smartphones, thus en- abling a truly mobile laboratory environment for students to learn the implementation aspects ofsignalsandsystemsconcepts. Azippedfileofthecodesdiscussedinthebookcanbeacquiredviathewebsitehttp://si tes.fastspring.com/bookcodes/product/SignalsSystemsBookcodesSecondEdition. KEYWORDS smartphone-basedsignalsandsystemslaboratory;anywhere-anytimeplatformfor signalsandsystemcourses;fromMATLABtosmartphones vii Contents Preface ........................................................... xi 1 IntroductiontoMATLAB............................................1 1.1 StartingMATLAB ............................................... 1 1.1.1 ArithmeticOperations ....................................... 1 1.1.2 VectorOperations ........................................... 5 1.1.3 ComplexNumbers .......................................... 6 1.1.4 ArrayIndexing ............................................. 7 1.1.5 AllocatingMemory.......................................... 8 1.1.6 SpecialCharactersandFunctions............................... 8 1.1.7 ControlFlow............................................... 9 1.1.8 ProgramminginMATLAB .................................. 11 1.1.9 SoundGeneration.......................................... 12 1.1.10LoadingandSavingData .................................... 13 1.1.11ReadingWaveandImageFiles................................ 13 1.1.12SignalDisplay ............................................. 14 1.2 MATLABProgrammingExamples ................................. 14 1.2.1 SignalGeneration .......................................... 14 1.2.2 GeneratingaPeriodicSignal ................................. 17 1.3 LabExercises ................................................... 18 2 SoftwareDevelopmentTools ........................................21 2.1 AndroidToolsInstallationSteps .................................... 21 2.1.1 JavaJDK ................................................. 21 2.1.2 AndroidStudioBundleandNativeDevelopmentKit.............. 22 2.1.3 AndroidStudioSetupWizard ................................ 23 2.1.4 AndroidEmulatorConfiguration.............................. 25 2.1.5 GettingFamiliarwithAndroidSoftwareTools................... 31 2.2 iOSToolsInstallationSteps ....................................... 39 2.2.1 IphoneAppDevelopmentwithXcode.......................... 41 2.2.2 Setting-UpAppEnvironment ................................ 43 2.2.3 CreatingLayout ........................................... 44 viii 2.2.4 ImplementingCCodes...................................... 45 2.2.5 ExecutingCCodesViaObjective-C ........................... 46 2.2.6 iOSAppDebugging........................................ 46 3 FromMATLABCodertoSmartphone ................................49 3.1 MATLABFunctionDesign ....................................... 49 3.2 GeneratingSignalsviaMATLABonSmartphones..................... 51 3.2.1 TestBench................................................ 52 3.2.2 CCodeGeneration......................................... 52 3.2.3 SourceCodeIntegration..................................... 54 3.3 RunningMATLABCoder-GeneratedCCodesonSmartphones ......... 57 3.3.1 RunningonAndroidSmartphones ............................ 57 3.3.2 RunningoniOSSmartphones ................................ 60 3.4 References...................................................... 63 4 LinearTime-InvariantSystemsandConvolution .......................65 4.1 ConvolutionandItsNumericalApproximation ........................ 65 4.2 ConvolutionProperties ........................................... 66 4.3 ConvolutionExperiments ......................................... 67 4.4 LabExercises ................................................... 91 4.4.1 EchoCancellation.......................................... 91 4.4.2 NoiseReductionUsingMeanFiltering ......................... 95 4.4.3 ImpulseNoiseReductionUsingMedianFiltering ................ 96 4.5 RunningMATLABCoder-GeneratedCCodesonSmartphones ......... 96 4.5.1 RunningonAndroidSmartphones ............................ 96 4.5.2 RunningoniOSSmartphones ................................ 99 4.6 Real-TimeRunningonSmartphones ............................... 101 4.6.1 MATLABFunctionDesign................................. 101 4.6.2 TestBench............................................... 102 4.6.3 ModifyingReal-TimeShellforAndroid ....................... 103 4.6.4 ModifyingReal-TimeShellforiOS........................... 111 4.7 Real-TimeLabs ................................................ 115 4.7.1 AndroidSteps ............................................ 115 4.7.2 iOSSteps................................................ 118 4.7.3 AndroidSteps ............................................ 122 4.7.4 iOSSteps................................................ 122 4.8 References..................................................... 125 ix 5 FourierSeries ....................................................127 5.1 FourierSeriesNumericalComputation ............................. 128 5.2 FourierSeriesandItsApplications ................................. 129 5.3 LabExercises .................................................. 143 5.3.1 RLCircuitAnalysis ....................................... 143 5.3.2 DopplerEffect............................................ 144 5.3.3 SynthesisofElectronicMusic ............................... 144 5.4 Real-TimeLabs ................................................ 147 5.4.1 AndroidSteps ............................................ 147 5.4.2 iOSSteps................................................ 152 5.4.3 AndroidSteps ............................................ 155 5.4.4 iOSSteps................................................ 160 5.5 References..................................................... 167 6 Continuous-TimeFourierTransform ................................169 6.1 CTFTandItsProperties......................................... 169 6.2 NumericalApproximationsofCTFT............................... 170 6.3 EvaluatingPropertiesofCTFT ................................... 170 6.4 LabExercises .................................................. 203 6.4.1 CircuitAnalysis........................................... 203 6.4.2 TheDopplerEffect ........................................ 204 6.4.3 DiffractionofLight ....................................... 206 6.5 Real-TimeLabs ................................................ 207 6.5.1 AndroidSteps ............................................ 207 6.5.2 iOSSteps................................................ 211 6.5.3 AndroidSteps ............................................ 216 6.5.4 iOSSteps................................................ 221 6.6 References..................................................... 224 7 DigitalSignalsandTheirTransforms.................................227 7.1 DigitalSignals ................................................. 227 7.1.1 SamplingandAliasing ..................................... 227 7.1.2 Quantization ............................................. 231 7.1.3 A/DandD/AConversions.................................. 231 7.1.4 DTFTandDFT.......................................... 233 7.2 Analog-to-DigitalConversion,DTFT,andDFT ..................... 237 x 7.3 LabExercises .................................................. 255 7.3.1 Dithering................................................ 255 7.3.2 ImageProcessing.......................................... 256 7.3.3 DTMFDecoder .......................................... 256 7.4 References..................................................... 256 Authors’Biographies ..............................................257 Index ...........................................................259

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.