TECSUP

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier Pag. 1 Laboratorio 01: Transformada de Fourier

Views 265 Downloads 20 File size 1014KB

Report DMCA / Copyright

DOWNLOAD FILE

Recommend stories

Citation preview

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

Pag. 1

Laboratorio 01: Transformada de Fourier Integrantes : 1. Cano Dominguez, Jhonatan Francisco 2. Cuellar Martinez, Kevin Andre 3. Espinal Ahuanlla, Hugo Neill

Profesor: Fecha: Santos Calizaya Semestre: Mesa de trabajo: Sexto

1. Objetivos: El objetivo fundamental es familiarizarse con la definición, manipulación y representación de señales en MATLAB. Para ello repasaremos la definición, operación y representación de señales en el dominio del tiempo. Posteriormente, utilizaremos algunas de las funciones que ofrece MATLAB para el Análisis de Fourier, así como para la manipulación de señales en los dominios del tiempo y la frecuencia. 2. Requerimientos:  PC Compatible  Software aplicado – MATLAB 3. Seguridad Advertencia: No consumir alimentos ni bebidas durante el desarrollo de la sesión del laboratorio. El equipo que esta por utilizar, es susceptible a daño eléctrico por mala manipulación y/o carga electroestática.

4. Introducción Teórica 

¿Qué es el Análisis Numérico? El análisis numérico o cálculo numérico es la rama de las matemáticas encargada de diseñar algoritmos para, a través de números y reglas matemáticas simples, simular procesos matemáticos más complejos aplicados a procesos del mundo real.



¿Qué es MATLAB? Es un software de desarrollo de programación enfocado a la al análisis numérico.



Iniciando MATLAB Inicie el software VMWare Workstation y cargue la plantilla Windows XP Pro SP2 – Plantilla MatLab, que se encuentra ubicado en la unidad D:\equipos virtuales. Clone la plantilla con el nombre del grupo al que pertenece, inicie la plantilla y cargue el software MatLab.

PROGRAMA DE FORMACIÓN REGULAR

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

Carpeta actual de trabajo

Editor de los programas que se ejecutan en MatLab

Permite introducir órdenes directamente por el usuario (seguidas de enter)



Pag. 2

Contiene las variables (escalares, vectores, matrices, ...) creadas en la sesión de Matlab

Las órdenes introducidas en la ventana command window quedan grabadas en esta ventana

¿Qué consideraciones se debe tomar en cuenta al utilizar MATLAB? Saber programar en el lenguaje que trabaja el software, considerar las funciones del programa.

5. Fundamentos de MATLAB



MATLAB usa para la representación de los números, notación decimal convencional, con un punto de separación decimal opcional y la precedencia de un signo más (+) o menos (-).



¿Cómo representaría Ud. los siguientes números en Matlab? Copie el código a continuación.  Números enteros >> 100  Números Reales >>5/8 , pi  Números Complejos >>4i



Operadores Básicos. Realice las siguientes operaciones en el software Matlab, copie y pegue el código como evidencia.

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

Pag. 3

SUMA: >> + RESTA: >> PRODUCTO: >> * COCIENTE: >> / POTENCIA: >> ^ 

Las variables pueden contener hasta 19 caracteres. Éstas deben empezar con una letra, seguida por cualquier número de letras, dígitos o guiones de subrayado, cabe resaltar que MatLab diferencia mayúsculas de minúsculas.



Copie el siguiente código en el software describa lo observado. ¿Cómo puede visualizar el valor alamacenado?. >> a = 50 ; >> A = 20; >> b = 100;

Las variables también pueden contener matrices de diferentes dimensiones. Comente cada fila del siguiente código. >> a = [1 2 3] >> b = [1 2 3; 3 5 6] >> size(b) >> a’ >>a(2) >>b(2,3) >>c = [: , 2] >>d = [2,:] También se puede crear matrices de números correlativos de forma automática bajo una secuencia establecida. Comente el código en cada línea.

Inicio

Fin

Intervalo e=0

: 2

:

10

>>e = 0:2:10 >>f = 1:0.1:2 >>g = 1:0.3:2 

Uso de la Ayuda Se puede acceder a ella mediante diferentes formas, las más utilizadas es a través del menú Help o utilizando los comandos en el editor propio. Ejecute el comando help y verifique que información muestra. Copie y pegue la información obtenida.

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

>> help HELP topics: matlabhdlcoder\matlabhdlcoder - (No table of contents file) matlabxl\matlabxl - (No table of contents file) matlab\demos - Examples. matlab\graph2d - Two dimensional graphs. matlab\graph3d - Three dimensional graphs. matlab\graphics - Handle Graphics. graphics\obsolete - (No table of contents file) matlab\plottools - Graphical plot editing tools matlab\scribe - Annotation and Plot Editing. scribe\obsolete - (No table of contents file) matlab\specgraph - Specialized graphs. matlab\uitools - Graphical user interface components and tools uitools\obsolete - (No table of contents file) hardware\stubs - (No table of contents file) matlab\images - (No table of contents file) toolbox\local - General preferences and configuration information. matlab\optimfun - Optimization and root finding. matlab\codetools - Commands for creating and debugging code matlab\datafun - Data analysis and Fourier transforms. matlab\datamanager - (No table of contents file) matlab\datastoreio - (No table of contents file) matlab\datatypes - Data types and structures. matlab\elfun - Elementary math functions. matlab\elmat - Elementary matrices and matrix manipulation. matlab\funfun - Function functions and ODE solvers. matlab\general - General purpose commands. matlab\guide - Graphical user interface design environment matlab\helptools - Help commands. matlab\iofun - File input and output. matlab\lang - Programming language constructs. matlab\mapreduceio - (No table of contents file) matlab\matfun - Matrix functions - numerical linear algebra. matlab\ops - Operators and special characters. matlab\polyfun - Interpolation and polynomials. matlab\randfun - Random matrices and random streams. matlab\sparfun - Sparse matrices. matlab\specfun - Specialized math functions. matlab\strfun - Character strings. matlab\testframework - (No table of contents file) matlab\timefun - Time and dates. matlab\verctrl - Version control. matlab\winfun - Windows Operating System Interface Files (COM/DDE) winfun\NET - Using .NET from within MATLAB simulink\components - Simulink components. simulink\dee - Differential Equation Editor asap2\asap2 - (No table of contents file) asap2\user - (No table of contents file) can\blocks - (No table of contents file) common\tgtcommon - (No table of contents file)

Pag. 4

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

rtw\misra - (No table of contents file) coder\simulinkcoder - Simulink Coder targets\pil - (No table of contents file) coder\advisor - (No table of contents file) AUTOSAR\AUTOSAR - (No table of contents file) rtw\accel - (No table of contents file) coder\simulinkcoder_core - (No table of contents file) rtw\rtwdemos - Simulink Coder Demos rtwdemos\rsimdemos - (No table of contents file) simulinktest\simulinktest - Simulink Test simulinktest\simulinktestdemos - (No table of contents file) blocks\library - (No table of contents file) library\simulinkcoder - (No table of contents file) blocks\obsolete - (No table of contents file) simulink\blocks - Simulink block library. simulink\simulink - Simulink simulink\MPlayIO - (No table of contents file) simulink\simdemos - Simulink examples simdemos\aerospace - (No table of contents file) simdemos\automotive - (No table of contents file) automotive\powerwindow - (No table of contents file) simdemos\simfeatures - (No table of contents file) simfeatures\modelreference - (No table of contents file) simfeatures\datadictionary - (No table of contents file) automotive\fuelsys - (No table of contents file) simdemos\simgeneral - (No table of contents file) simulink\hmi - (No table of contents file) simulink\modeladvisor - (No table of contents file) modeladvisor\fixpt - (No table of contents file) simulink\frameedit - (No table of contents file) dastudio\depviewer - (No table of contents file) stateflow\stateflow - Stateflow stateflow\sfdemos - Stateflow examples and samples. aero\aero - Aerospace Toolbox aeroblks\aeroblks - Aerospace Blockset aeroblks\aeroblksutilities - (No table of contents file) aeroblks\aerodemos - Aerospace Blockset model examples. aero\astdemos - (No table of contents file) antenna\antenna - Antenna Toolbox antenna\antennautilities - (No table of contents file) antenna\atexamples - Antenna Toolbox Demos matlab\apps - (No table of contents file) matlab\audiovideo - Audio and Video support. bioinfo\bioinfo - Bioinformatics Toolbox bioinfo\biolearning - Bioinformatics Toolbox -- Statistical Learning functions. bioinfo\microarray - Bioinformatics Toolbox -- Microarray support functions. bioinfo\mass_spec - Bioinformatics Toolbox -- Mass spectrometry data analysis functions. bioinfo\proteins - Bioinformatics Toolbox -- Protein analysis tools. bioinfo\biomatrices - Bioinformatics Toolbox -- Sequence similarity scoring matrices. bioinfo\graphtheory - Bioinformatics Toolbox -- Graph Theory functions.

Pag. 5

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

bioinfo\biodemos - Bioinformatics Toolbox -- Tutorials, demos and examples. coder\codegendemos - (No table of contents file) coder\connectivity - (No table of contents file) coder\coverage - (No table of contents file) rtw\rtw - (No table of contents file) tools\registry - (No table of contents file) foundation\tfl - (No table of contents file) AUTOSAR4p0\IFX - (No table of contents file) AUTOSAR4p0\IFL - (No table of contents file) tfl\gui - (No table of contents file) coder\matlabcoder - MATLAB Coder comm\comm - Communications System Toolbox commutilities\comminit - (No table of contents file) commutilities\commmex - (No table of contents file) comm\commutilities - (No table of contents file) comm\commdeprecated - Archived MATLAB Files from Communications System Toolbox. comm\commdemos - Communications System Toolbox Demos. comm\examples - Communications Toolbox Documentation Examples. shared\comparisons - (No table of contents file) compiler_sdk\java - (No table of contents file) toolbox\compiler - MATLAB Compiler compiler\java - (No table of contents file) toolbox\compiler_sdk - MATLAB Compiler SDK connector\connector - connector Enable or disable the MATLAB Connector. The MATLAB Connector allows you to access a MATLAB session on a desktop from a mobile device using MATLAB Mobile. control\control - Control System Toolbox control\ctrlguis - Control System Toolbox -- Visualization and plot manipulation. control\ctrlobsolete - Control System Toolbox -- obsolete commands. control\ctrlutil - Control System Toolbox -- Utilities and MEX files. control\ctrldemos - Control System Toolbox -- Demos. curvefit\curvefit - Curve Fitting Toolbox curvefit\splines - Curve Fitting Toolbox -- Spline Functions curvefit\cftoolgui - Curve Fitting Toolbox -- Curve Fitting Tool curvefit\curvefitdemos - Curve Fitting Toolbox -- Examples daq\daq - Data Acquisition Toolbox daqblks\daqblks - (No table of contents file) daq\daqguis - Data Acquisition Toolbox - Data Acquisition Soft Instruments. daq\daqdemos - Data Acquisition Toolbox - Data Acquisition Demos. database\database - Database Toolbox database\vqb - Visual Query Builder functions. database\dbdemos - Database Toolbox Demonstration Functions. datafeed\datafeed - Datafeed Toolbox datafeed\datafeeddemos - (No table of contents file) datafeed\dfgui - Datafeed Toolbox Graphical User Interface toolbox\distcomp - Parallel Computing Toolbox distcomp\distcomp - (No table of contents file) distcomp\user - (No table of contents file) distcomp\mpi - Parallel Computing Functions for Message Passing distcomp\parallel - Parallel Algorithms parallel\util - (No table of contents file)

Pag. 6

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

distcomp\lang - Parallel computing programming language constructs. distcomp\cluster - Functions and Classes for Parallel Computing with Clusters distcomp\gpu - There are several options available for using your computer's graphics distcomp\pctdemos - (No table of contents file) distcomp\worker - MATLAB Distributed Computing Server dotnetbuilder\dotnetbuilder - (No table of contents file) qualkits\do - DO Qualification Kit hdlverifier\dpigenerator - (No table of contents file) dpigenerator\rtw - (No table of contents file) dsp\dsp - DSP System Toolbox dsp\dsputilities - (No table of contents file) dsputilities\dspinit - (No table of contents file) dsputilities\dspmex - (No table of contents file) dsp\dspdemos - DSP System Toolbox demonstrations and examples. dsp\dspdeployabledemos - (No table of contents file) dsp\examples - (No table of contents file) targets\ecoder - (No table of contents file) mpt\mpt - Module Packaging Feature mpt\user_specific - (No table of contents file) coder\embeddedcoder - Embedded Coder ecoder\ecoderdemos - (No table of contents file) econ\econ - Econometrics Toolbox econ\econdemos - Econometrics Toolbox: Data, Demos, and Examples edalink\edalink - (No table of contents file) hdlverifier\hdlverifier - HDL Verifier foundation\hdllink - (No table of contents file) eml\eml - (No table of contents file) toolbox\exlink - Spreadsheet Link EX dsp\filterdesign - (No table of contents file) finance\finance - Financial Toolbox finance\calendar - Financial Toolbox calendar functions. finance\finsupport - (No table of contents file) finance\ftseries - Financial Toolbox Times Series Functions. finance\findemos - Financial Toolbox Examples fininst\fininst - Financial Instruments Toolbox fininst\fininstdemos - Financial Instruments Toolbox: Demos fixedpoint\fixedpointtool - (No table of contents file) fixedpoint\fidemos - (No table of contents file) fixedpoint\fixedpoint - Fixed-Point Designer toolbox\fixpoint - Fixed-Point Designer fixpoint\fpca - (No table of contents file) fixedandfloat\fxpdemos - Fixed-Point Designer Demos fuzzy\fuzzy - Fuzzy Logic Toolbox fuzzy\fuzzyutil - (No table of contents file) fuzzy\fuzdemos - Fuzzy Logic Toolbox Demos. geoweb\geoweb - GeoWeb Functions and Classes globaloptim\globaloptim - Global Optimization Toolbox globaloptim\globaloptimdemos - Global Optimization Toolbox Demos glue\studio - (No table of contents file) hdlcoder\hdlcoder - HDL Coder hdlcoder\hdlwa - (No table of contents file)

Pag. 7

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

hdlcoder\hdlcoderdemos - HDL Coder Examples hdlcoderdemos\matlabhdlcoderdemos - HDL Coder Demos hdlcoder\hdlcommon - (No table of contents file) hdlcommon\modelcheckeradvisor - (No table of contents file) hdlfilter\hdlfilter - Filter Design HDL Coder hdlfilter\hdlfiltdemos - Filter Design HDL Coder Demos hdllib\ml_lib - (No table of contents file) hdllib\sl_lib - (No table of contents file) hdlverifier\hdlverifier_examples - (No table of contents file) hdlvideo\hdlvideo - (No table of contents file) eclipseide\mdlinfo - (No table of contents file) eclipseide\tfl - (No table of contents file) ticcs\ccsblks - (No table of contents file) ticcs\ccslinkblks - (No table of contents file) ccslinkblks\rtdxsimblks - (No table of contents file) ticcs\mdlinfo - (No table of contents file) ticcs\tfl - (No table of contents file) ticcs\util - (No table of contents file) ticcs\envChecker - (No table of contents file) foundation\pjtgenerator - (No table of contents file) pjtgenerator\tgtpref2 - (No table of contents file) pjtgenerator\mdlinfo - (No table of contents file) pjtgenerator\blks - (No table of contents file) blks\masks - (No table of contents file) foundation\util - (No table of contents file) foundation\errorhandler - (No table of contents file) foundation\xmakefile - (No table of contents file) foundation\hookpoints - (No table of contents file) idelink\idelinkdemos - (No table of contents file) ticcs\ccsdemos - (No table of contents file) ccsdemos\util - (No table of contents file) ident\ident - System Identification Toolbox ident\nlident - Nonlinear System Identification features. Type "help ident" for more info. ident\idobsolete - (No table of contents file) ident\idguis - (No table of contents file) ident\idutils - (No table of contents file) ident\iddemos - (No table of contents file) iddemos\examples - (No table of contents file) qualkits\iec - IEC Certification Kit images\colorspaces - Image Processing Toolbox --- colorspaces images\images - Image Processing Toolbox images\imdata - Image Processing Toolbox --- sample images images\imuitools - Image Processing Toolbox --- imuitools images\iptformats - Image Processing Toolbox --- File Formats images\iptutils - Image Processing Toolbox --- utilities matlab\imagesci - (No table of contents file) images\imdemos - Image Processing Toolbox --- demos imaq\imaq - Image Acquisition Toolbox imaq\imaqdemos - Image Acquisition Toolbox. imaqblks\imaqblks - (No table of contents file) imaqblks\imaqmex - (No table of contents file)

Pag. 8

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

imaqblks\imaqmasks - (No table of contents file) incisive\incisive - HDL Verifier for use with Cadence Incisive incisive\incisivedemos - (No table of contents file) instrument\instrument - Instrument Control Toolbox instrumentblks\instrumentblks - (No table of contents file) instrumentblks\instrumentmex - (No table of contents file) instrumentblks\instrumentmasks - (No table of contents file) instrument\instrumentdemos - (No table of contents file) shared\instrument - (No table of contents file) javabuilder\javabuilder - (No table of contents file) lte\lte - LTE System Toolbox lte\lteobsolete - Obsolete LTE Toolbox interface lte\examples - (No table of contents file) lte\lteexamples - LTE System Toolbox Examples. shared\m3i - (No table of contents file) map\map - Mapping Toolbox map\mapgeodesy - (No table of contents file) map\mapdisp - (No table of contents file) map\mapformats - (No table of contents file) map\mapproj - (No table of contents file) map\mapdata - Mapping Toolbox Sample Data Sets map\mapdemos - Mapping Toolbox Examples mbc\mbc - Model-Based Calibration Toolbox mbc\mbcdata - Model-Based Calibration Toolbox private utilities. mbc\mbcdesign - Model-Based Calibration Toolbox private utilities. mbc\mbcexpr - Model-Based Calibration Toolbox private utilities. mbc\mbcguitools - Model-Based Calibration Toolbox private utilities. mbc\mbclayouts - Model-Based Calibration Toolbox private utilities. mbc\mbcmodels - Model-Based Calibration Toolbox private utilities. mbc\mbcsimulink - Model-Based Calibration Toolbox private utilities. mbc\mbctools - Model-Based Calibration Toolbox private utilities. mbc\mbcview - Model-Based Calibration Toolbox private utilities. mbc\mbcdemos - (No table of contents file) shared\mldatx - (No table of contents file) modelsim\modelsim - HDL Verifier for use with Mentor Graphics ModelSim modelsim\modelsimdemos - (No table of contents file) mpc\mpc - Model Predictive Control Toolbox mpc\mpcguis - (No table of contents file) mpc\mpcobsolete - (No table of contents file) mpc\mpcutils - (No table of contents file) mpc\mpcdemos - Model Predictive Control Toolbox -- Demos. matlab\networklib - Network support. toolbox\nnet - Neural Network Toolbox nnet\nncontrol - Neural Network Toolbox Control System Functions. nnet\nnadapt - Neural Network Toolbox Adapt Functions. nnet\nndatafun - Neural Network Toolbox Data Functions. nnet\nnderivative - Neural Network Toolbox Calculation Functions. nnet\nndistance - Neural Network Toolbox Distance Functions. nnet\nndivision - Neural Network Toolbox Division Functions. nnet\nninitlayer - Neural Network Toolbox Layer Initialization Functions. nnet\nninitnetwork - Neural Network Toolbox Network Initialization Functions. nnet\nninitweight - Neural Network Toolbox Weight Initialization Functions.

Pag. 9

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

nnet\nnlearn - Neural Network Toolbox Learning Functions. nnet\nnnetfun - Neural Network Toolbox Network Functions. nnet\nnnetinput - Neural Network Toolbox Net Input Functions. nnet\nnnetwork - Neural Network Toolbox Network Creation Functions. nnet\nnperformance - Neural Network Toolbox Performance Functions. nnet\nnplot - Neural Network Toolbox Plot Functions. nnet\nnprocess - Neural Network Toolbox Processing Functions. nnet\nnsearch - Neural Network Toolbox Line Search Functions. nnet\nntopology - Neural Network Toolbox Topology Functions. nnet\nntrain - Neural Network Toolbox Training Functions. nnet\nntransfer - Neural Network Toolbox Transfer Functions. nnet\nnweight - Neural Network Toolbox Weight Functions. nnet\nnguis - Neural Network Toolbox GUI Functions. nnet\nnobsolete - Neural Network Toolbox Obsolete Functions nnet\nnutils - Neural Network Toolbox Utility Functions nnet\nndemos - Neural Network Demonstrations and Applications nndemos\nndatasets - Neural Network Datasets opc\opc - OPC Toolbox opc\opcgui - (No table of contents file) opcblks\opcblks - OPC Toolbox Block Library Support Functions. opc\opcdemos - OPC Toolbox - OPC Examples opcdemos\opcblksdemos - OPC Toolbox Block Library Examples. optim\optim - Optimization Toolbox optim\optimdemos - Demonstrations. toolbox\pde - Partial Differential Equation Toolbox pde\pdedemos - Partial Differential Equation Toolbox Examples phased\phased - Phased Array System Toolbox phased\phasedapps - (No table of contents file) phased\phaseddemos - (No table of contents file) mli\m - (No table of contents file) mli\m - (No table of contents file) mli\m - (No table of contents file) drive\drive - (No table of contents file) drive\drivedemos - SimDriveline 1 Demos. elec\elec - SimElectronics elec\elecdemos - (No table of contents file) mech\mech - (No table of contents file) mech\importer - (No table of contents file) mech\mechdemos - SimMechanics Demos. network_engine\network_engine - (No table of contents file) ne_sli\ne_sli - (No table of contents file) pe\pedemos - (No table of contents file) library\m - (No table of contents file) utils\m - (No table of contents file) pm_sli\pm_sli - (No table of contents file) powersys\powersys - (No table of contents file) powersys\library - (No table of contents file) powersys\powerdemo - SimPowerSystems Demos drives\drivesdemo - (No table of contents file) DR\DRdemo - (No table of contents file) facts\factsdemo - (No table of contents file) powerdemo\machines - (No table of contents file)

Pag. 10

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

powerdemo\simple - (No table of contents file) sdl\sdl - SimDriveline sdl\classic - (No table of contents file) sh\sh - SimHydraulics sh\shdemos - (No table of contents file) simrf\m - (No table of contents file) simscape\simscapedemos - (No table of contents file) foundation\simscape - Simscape library\m - (No table of contents file) simscape\m - (No table of contents file) smdemos\cart_double_pendulum - (No table of contents file) smdemos\stewart_platform - (No table of contents file) smdemos\double_crank_aiming - (No table of contents file) smdemos\double_wishbone_suspension - (No table of contents file) smdemos\robotic_wrist - (No table of contents file) smdemos\welding_robot - (No table of contents file) smdemos\potters_wheel - (No table of contents file) smdemos\linear_actuator - (No table of contents file) smdemos\pto_shaft - (No table of contents file) foundation\mech - SimMechanics import\m - (No table of contents file) sli\m - (No table of contents file) sm\m - (No table of contents file) sps\sps - SimPowerSystems plccoder\plccoder - Simulink PLC Coder plugins\omron - (No table of contents file) plugins\indraworks - (No table of contents file) plccoder\plccoderdemos - (No table of contents file) polyspace\psbugfinder - Polyspace Bug Finder polyspace\pscodeprover - Polyspace Code Prover pscore\pscore - (No table of contents file) psdistcomp\psdistcomp - (No table of contents file) pslink\pslink - Polyspace plug-in for Simulink. psrptgen\psrptgen - (No table of contents file) codeinstrum\codeinstrum - (No table of contents file) interfaces\python - (No table of contents file) qualkits\common - (No table of contents file) realtime\realtime - Run Simulink model on target hardware rf\rf - RF Toolbox rf\rftool - RF Tool Graphical User Interface rfblks\rfblks - (No table of contents file) rfblks\rfblksmasks - (No table of contents file) rfblks\rfblksdemos - (No table of contents file) rf\rfdemos - RF Toolbox Demos robotics\robotics - Robotics System Toolbox robotics\ros - ROS (Robot Operating System) robotics\robotcore - (No table of contents file) robotics\robotsimulink - (No table of contents file) robotslros\registry - (No table of contents file) robotics\robotexamples - Robotics System Toolbox Examples. robotsimulink\helpers - (No table of contents file) robust\robust - Robust Control Toolbox

Pag. 11

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

robust\rctlmi - Robust Control Toolbox - LMI Solvers. robust\rctutil - (No table of contents file) robust\rctguis - (No table of contents file) rctobsolete\lmi - (No table of contents file) mutools\commands - (No table of contents file) mutools\subs - Utilities for obsolete MUTOOLS commands. robust\rctdemos - Robust Control Toolbox -- Demos. rptgen\rptgen - MATLAB Report Generator rptgenext\rptgenext - Simulink Report Generator rptgenextdemos\flutter_suppression - (No table of contents file) rptgenextdemos\sdd - (No table of contents file) rptgenextdemos\slxmlcomp - (No table of contents file) rptgen\rptgendemos - (No table of contents file) rptgendemos\domapi - (No table of contents file) xmlcomp\demos - (No table of contents file) sldrt\sldrt - Simulink Desktop Real-Time sldrt\sldrtexamples - (No table of contents file) blocks\sb2sl - (No table of contents file) shared\can - (No table of contents file) can\canblks - (No table of contents file) can\canmasks - (No table of contents file) can\canmex - (No table of contents file) controllib\engine - Control Library - Engine. engine\numerics - (No table of contents file) engine\options - (No table of contents file) engine\blocks - (No table of contents file) controllib\general - Control System Toolbox -- General Utilities. controllib\graphics - Control Library - Graphics. graphics\utils - (No table of contents file) graphics\plotoptions - (No table of contents file) controllib\requirements - Control Library - Design Requirements. shared\dastudio - (No table of contents file) dspblks\dspblks - (No table of contents file) dsp\dialog - (No table of contents file) utilities\init - (No table of contents file) eda\board - (No table of contents file) eda\fil - FPGA-in-the-Loop verifies FPGA designs in Simulink and MATLAB with an fil\filmapi - (No table of contents file) fil\fildemos - (No table of contents file) eda\fpgaautomation - HDL Verifier for Xilinx FPGA design automation shared\filterdesignlib - (No table of contents file) shared\hdlshared - HDL Library hdlshared\hdlshared_gui - (No table of contents file) shared\imageslib - Image Processing Toolbox Library shared\imaqlib - Image Acquisition Toolbox Library shared\mapgeodesy - Geometric Geodesy Functions shared\maputils - Map Utility Functions shared\measure - (No table of contents file) shared\optimlib - Optimization Toolbox Library shared\pdelib - PDE Toolbox Library slvnv\reqmgt - Requirements Management Interface.

Pag. 12

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

reqmgt\RTExplorer - Subdirectory "RTExplorer" - RMI data serialization infrastructure shared\rflib - (No table of contents file) shared\rptgen - (No table of contents file) shared\sigbldr - (No table of contents file) shared\siglib - (No table of contents file) sysarch\sysarch - (No table of contents file) shared\slcontrollib - Simulink Control Design Library shared\sldv - sldvisactive - Check if Simulink Design Verifier software is analyzing model shared\slvnv - (No table of contents file) slvnv\slvnv - Simulink Verification and Validation slvnv\simcoverage - Simulink Model Coverage Tool shared\spcuilib - (No table of contents file) shared\statslib - Statistics and Machine Learning Toolbox Library testmeaslib\simulink - (No table of contents file) tlmgenerator\foundation - (No table of contents file) foundation\tlmgeneratordemos - (No table of contents file) shared\xcp - XCP functionality is provided as part of Vehicle Network Toolbox. xcp\xcpblks - (No table of contents file) xcp\xcpmasks - (No table of contents file) xcp\xcpmex - (No table of contents file) signal\signal - Signal Processing Toolbox signal\sigtools - (No table of contents file) signal\sptoolgui - (No table of contents file) signal\sigdemos - (No table of contents file) simbio\simbio - SimBiology simbio\simbiodemos - SimBiology Demos simevents\simevents - SimEvents simevents\examples - SimEvents Demos. simrf\simrf - SimRF simrf\simrfV2 - (No table of contents file) simrf\simrfV2masks - (No table of contents file) simrf\simrfV2demos - SimRF 4.4 Demos simrf\examples - (No table of contents file) simrf\simrf_top - (No table of contents file) sl3d\sl3d - Simulink 3D Animation sl3d\sl3ddemos - Simulink 3D Animation examples. slci\slci - Simulink Code Inspector slci\slcidemos - (No table of contents file) slcontrol\slcontrol - Simulink Control Design slcontrol\slctrlguis - (No table of contents file) slcontrol\slctrlutil - (No table of contents file) slcontrol\slctrlobsolete - (No table of contents file) slcontrol\slctrldemos - (No table of contents file) sldo\sldo - Simulink Design Optimization sldo\sldoguis - (No table of contents file) sloptim\sloptim - (No table of contents file) sloptim\sloptguis - (No table of contents file) sloptim\sloptobsolete - (No table of contents file) slestim\slestguis - (No table of contents file)

Pag. 13

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

slestim\slestim - (No table of contents file) slestim\slestmex - Simulink Design Optimization Estimation S-Function MEX-files. slestim\slestutil - (No table of contents file) sldo\sldodemos - Simulink Design Optimization Demos. sldodemos\optim - (No table of contents file) sldodemos\estim - (No table of contents file) sldo\examples - (No table of contents file) sldv\slicer - (No table of contents file) slicer\gui - (No table of contents file) sldv\sldv - Simulink Design Verifier sldv\sldvdemos - (No table of contents file) slproject\examples - (No table of contents file) slreportgen\webview - (No table of contents file) slrt\slrt - Simulink Real-Time slrt\blocks - (No table of contents file) blocks\protocols - (No table of contents file) blocks\displaylogging - (No table of contents file) slrt\slrtexamples - (No table of contents file) slvnv\slvnvdemos - (No table of contents file) slvnv\rmidemos - (No table of contents file) slvnv\simcovdemos - (No table of contents file) slvnv\do178b - (No table of contents file) slvnv\iec61508 - Modeling Style Guide checks for IEC61508 slvnv\styleguide - (No table of contents file) simulink\sl_async_streaming - (No table of contents file) simulink\fixedandfloat - Fixed-Point Designer utilities. fixedandfloat\obsolete - (No table of contents file) iodata\iomap - (No table of contents file) performance\performancea - (No table of contents file) simharness\simharness - (No table of contents file) simulink\upgradeadvisor - (No table of contents file) stats\stats - Statistics and Machine Learning Toolbox stats\classreg - (No table of contents file) stats\clustering - (No table of contents file) stats\statsdemos - Statistics and Machine Learning Toolbox --- Demos stats\mlearnapp - Statistics and Machine Learning Toolbox symbolic\symbolic - Symbolic Math Toolbox symbolic\symbolicdemos - (No table of contents file) systemtest\systemtest - SystemTest systemtest\systemtestdemos - SystemTest demonstrations and examples. target\codertarget - (No table of contents file) intelhost\tfl - (No table of contents file) foundation\utils - (No table of contents file) utils\resource_config - (No table of contents file) blks\mex - (No table of contents file) blks\masks - (No table of contents file) ti\mdlinfo - (No table of contents file) ti\utils - (No table of contents file) blks\masks - (No table of contents file) etargets\etargets - (No table of contents file) etargets\demoutils - (No table of contents file) target\targetdemos - (No table of contents file)

Pag. 14

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

Pag. 15

processor\tic2000 - (No table of contents file) tic2000\utils - (No table of contents file) blks\masks - (No table of contents file) tic5000\tic5000demos - (No table of contents file) processor\tic6000 - (No table of contents file) tic6000\tfl - (No table of contents file) tic6000\utils - (No table of contents file) blks\masks - (No table of contents file) blks\mex - (No table of contents file) blks\masks - (No table of contents file) matlab\timeseries - Time series data visualization and exploration. matlab\hds - (No table of contents file) matlab\toolbox_packaging - (No table of contents file) trading\trading - Trading Toolbox trading\tradingdemos - (No table of contents file) lte\umts - LTE System Toolbox vision\vision - Computer Vision System Toolbox vision\visionutilities - (No table of contents file) visionutilities\visioninit - (No table of contents file) visionutilities\visionmex - (No table of contents file) visionhdl\visionhdl - Vision HDL Toolbox visionhdl\visionhdlutilities - (No table of contents file) visionhdl\visionhdlexamples - Vision HDL Toolbox Examples. vnt\vnt - Vehicle Network Toolbox vnt\vntguis - (No table of contents file) vntblks\vntblks - (No table of contents file) vntblks\vntmasks - (No table of contents file) vnt\vntdemos - (No table of contents file) wavelet\wavelet - Wavelet Toolbox wavelet\wmultisig1d - (No table of contents file) wavelet\compression - (No table of contents file) wavelet\wavedemo - (No table of contents file) matlab\webcam - Webcam support. webservices\restful - (No table of contents file) interfaces\webservices - Web services interface. xpc\xpc - (No table of contents file) xpcblocks\thirdpartydrivers - (No table of contents file) build\xpcblocks - (No table of contents file) build\xpcobsolete - (No table of contents file) xpc\xpcdemos - (No table of contents file)

Para consultar la ayuda de una determinada función ejecute el comando help seguido del nombre de la función a consultar.

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

Pag. 16

>>help sin Que información se puede extraer del comando ejecutado. >> help sin sin - Sine of argument in radians This MATLAB function returns the sine of the elements of X. Y = sin(X) Reference page for sin See also asin, asind, sind, sinh Other uses of sin fixedpoint/sin, symbolic/sin



FUNCIONES Y OPERACIONES, podemos utilizar el comando “help”. MATLAB provee un gran número de funciones matemáticas elementales, como Valor Absoluto, Raíz Cuadrada, Seno, Coseno, Etc. Comente cada línea del siguiente código. >> sin(pi) sin(pi) not found. Use the Help browser search field to search the documentation, or type "help help" for help command options, such as help for methods. >> abs(-5) abs(-5) not found. Use the Help browser search field to search the documentation, or type "help help" for help command options, such as help for methods. >> ans ans not found. Use the Help browser search field to search the documentation, or type "help help" for help command options, such as help for methods.



Utilizando el comando help averigüe algunas de las funciones más utilizadas por sus conocimientos de matemática. Evidencie el trabajo realizado.

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier



Ejemplo: verifique las siguientes expresiones en Matlab. Evidencie el trabajo realizado. Expresión

Expresión en MATLAB

5 2

1 2

Resistencia =

f=

𝟏 𝟏 𝟏 𝟏 + + 𝒓𝟏 𝒓𝟐 𝒓𝟑

𝑿𝟑 −𝟐𝟐 + 𝒙−𝟔.𝟑 𝒙𝟐 + 𝟎.𝟎𝟓𝒙−𝟑.𝟏𝟒

Pag. 17

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

Pag. 18

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

Pag. 19

6. Análisis de Fourier mediante software. MATLAB está equipado con funciones especiales que nos van a permitir realizar un análisis de Fourier de funciones definidas por un conjunto de valores discretos. Por ejemplo, el comando fft() nos permite obtener la transformada rápida de Fourier (fast Fourier Transform) de una secuencia de números definida por el vector x. Por ejemplo: >> X=fft(x); donde X es un vector de números complejos ordenados desde k=0...N-1. Si queremos que sea más eficiente en el cálculo de la ffT, la longitud del vector x deberá ser una potencia de 2. Podemos rellenar de ceros el vector x para que tenga la longitud apropiada. Esto se consigue automáticamente haciendo: >> X=fft(x,N); donde N es exponente de 2. Mientras más largo sea x, más fina será la escala para la ffT. Debido a un fenómeno de plegamiento del espectro, sólo la primera mitad de los puntos obtenidos son de utilidad. La función fftshift() reordena el vector X en orden creciente de frecuencia. Si X es el vector resultante de hacer una ffT, utilizando esta función reordenamos los puntos en función de la fre-cuencia. >> X=fftshift(X); 6.1. Análisis de la transformada de Fourier para señales periódicas. Copie el código mostrado en el software MatLab y ejecútelo. Copie el gráfico obtenido y péguelo en este documento como evidencia del trabajo realizado. FUNCIÓN SENOIDAL

GRÁFICO

% GENERANDO LAS SEÑALES Fs = 1000; % frecuencia de muestreo (en Hz) t = 0:1/Fs:0.25; % vector tiempo de 0.25 segundo fc = 150; Ac=1; ct=Ac*cos(2*pi*t*fc); subplot(2,1,1); plot(t,ct); title('SEÑAL SENOIDAL'); %APLICANDO LA FFT nfft=1024; %el número de puntos de la fft freq = (-nfft/2:nfft/2-1)*Fs/nfft; %construcción del vector de frecuencias %FFT portadora CT=fftshift(fft(ct,nfft)); CTpot= abs(CT).^2; % tomar la potencia espectral subplot(2,1,2); plot(freq,CTpot); title('ESPECTRO DE LA SEÑAL');

Modifique el código anterior para poder encontrar los espectros en frecuencia de las siguientes señales. SEÑAL IMPULSO O DELTA DE DIRAC

GRÁFICO

f_impulso=[zeros(1,1000),1,zeros(1,1000)];

SEÑAL width=0.10;

DIENTE DE SIERRA

GRÁFICO

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

Pag. 20

f_sierra=sawtooth(2*pi*0.1*t,width);

SEÑAL

GRÁFICO

TRIANGULAR

% Ejemplo de señal triangular de periodo 0.1Hz % Es un caso particular de señal diente de sierra con width=0.5 f_triangular=sawtooth(2*pi*0.1*t,0.5);

SEÑAL

GRÁFICO

CUADRADA

% Ejemplo de señal cuadrada de frecuencia 0.5Hz % square(x,duty) genera una onda cuadrada de periodo 2*pi con un duty cycle dado duty=50; % porcentaje del periodo en el que la señal es positiva f_cuadrada=square(2*pi*0.5*t,duty); FUNCIÓN PULSO

GRÁFICO

f_pulso=[zeros(1,950),ones(1,101),zeros(1, 7. Análisis de la Transformada de Fourier mediante Osciloscopio. 7.1. Pasos a seguir. a) Con el generador de funciones obtenga una señal senoidal (el alumno es libre de elegir la amplitud y la frecuencia de la señal). b) Con el osciloscopio registre la señal en el tiempo. c) Con el osciloscopio registre la señal en la frecuencia (revise página 55). Puede descargar el manual de la siguiente dirección: ttp://www.phys.nthu.edu.tw/~gplab/file/21%20RC%20and%20RLC%20Circuits/Tek%20TDS2002C%20Use r%20Manual%20(US).pdf Registre los oscilogramas que evidencien el trabajo realizado. Señal en el dominio del tiempo.

Señal en el dominio de la frecuencia.

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

Pag. 21

d) Obtenga los oscilogramas de una señal triangular y cuadrada. Señal triangular: Señal en el dominio del tiempo.

Señal en el dominio de la frecuencia.

Señal cuadrada: Señal en el dominio del tiempo.

Señal en el dominio de la frecuencia.

e) Resuma los pasos a realizar en el osciloscopio para poder obtener las señales en la frecuencia.

Paso 1

2

Descripción: Ejemplo: Presione el botón “Auto Set”: El oscilosopio se auto-configura y muestra la señal en el tiempo.

Imagen

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

Pag. 22

Comunicación de Datos Industriales Laboratorio: Transformada de Fourier

Pag. 23

8. Conclusiones y observaciones. OBSERVACIONES



El Software Matlab también puede trabajar con números imaginarios, pero para realizar operaciones con los mismos pueden varias un poco la manera de programar, como ejemplo podemos utilizar la operación de multiplicación que no se necesita poner un “*” para poder operar, solo es necesario poner el número al costado y el software asume automáticamente.



Se tiene que tener mucho cuidado al momento de programar, ya que todos los símbolos son usados para una determinada acción, y es necesario conocer para que sirve cada uno de ellos.



Para guardar tanto un archivo .m como uno .slx se debe guardar con un nombre en específico lo cual limita a utilizar ciertos caracteres y otras no.