Matlab PDF
Matlab PDF
Matlab PDF
FACULTADE DE INFORMTICA
SOFTWARE
Matlab Versin 6
Introduccin
En los ltimos aos la Facultad de Informtica de A Corua ha venido utilizando el software Matlab para la realizacin de los crditos prcticos en las tres titulaciones impartidas en la Facultad: Ingeniera Informtica, Ingeniera Tcnica Informtica de Gestin e Ingeniera Tcnica Informtica de Sistemas. Matlab, desarrollado por la compaa MathWorks, es un producto ampliamente reconocido para la informtica tcnica que abarca gran variedad de reas de aplicacin, entre las que se encuentran el procesamiento de imgenes, sistemas de mando, ciencias naturales, finanzas, economa... Este entorno incluye herramientas para adquisicin y anlisis de datos, visualizacin y procesamiento de las imgenes, prototipos de algoritmos, planificacin y simulacin, programacin y desarrollo de aplicaciones y un largo etctera. Dentro de un entorno muy amigable con una facilidad extraordinaria para la resolucin de problemas relacionados con diversas disciplinas. Matlab integra informtica matemtica, visualizacin y un lenguaje tcnico muy poderoso. Permitiendo adems importar rutinas externas escritas en LENGUAJE C, C++, Fortran y Java a sus aplicaciones. Existen diversas implementaciones Open Source compatibles en cierta medida con Matlab, como Octave y Scilab que dan una muestra de como se puede aprovechar el "saber hacer" de MathWork, puesto que incorporan sus tcnicas de trabajo y sus entornos amigables. Hasta ahora se han utilizado los mdulos de Matlab, Simulink, Neural Network Toolbox, Signal Processing Toolbox, Wavelet Toolbox y Communications Blockset en asignaturas tales como Sistemas Conexionistas, Tratamiento Digital de la Seal, Tcnicas de Simulacin, etc.
http://www.fi.udc.es/cc/srv/sft/Matlab6.html (1 of 3) [25/10/2004 11:41:42]
MatLab versin 6
Matlab Versin 6
En Marzo de 2001 se ha instalado para uso docente en la Facultad de Informtica la versin 6 de Matlab que proporciona un entorno mejorado, cuyas caractersticas ms reseables son: q Nuevo escritorio con una carpeta de herramientas para manejar el entorno de MATLAB, incluida la Ventana de Orden, la ventana de Historia de Orden, Workspace Browser, Editor de Serie, etc. q Mejora del cmputo matemtico y perfeccionamiento de los algoritmos: la biblioteca de LAPACK esta perfeccionada para realizar clculos de matrices ms rpidos, nuevos solvers de ecuaciones diferenciales y algoritmos de cuadratura ms exactos. q Nuevas estadsticas de los datos y las herramientas bsicas para el anlisis rpido de datos trazados. q Nuevos rasgos avanzados de visualizacin: despliegue de imgenes 2-D, superficies y volmenes como objetos transparentes; la barra de herramientas de la cmara interactiva para controlar perspectivas. q Nueva interface para llamar rutinas de Java y los prebuilt usando Java objet directamente de MATLAB. q Nueva interface de comunicacin del puerto serie para comunicar con instrumentos externos a MATLAB. q Integracin de MATLAB con Microsoft Visual Estudio. q Ventana de ayuda que permite buscar, leer e imprimir la documentacin en linea. Algunos Toolboxes utilizados en la docencia de la Facultad de Informtica de A Corua han sido mejorados, tales como: q Signal Processing Toolbox 5: proporciona herramientas para el anlisis de seales y sistemas lineales, para modelar datos de series temporales y para el desarrollo de algoritmos. q Filter Design Toolbox 2: complementa al Signal Processing Toolbox 5 proporcionando tcnicas de diseo de filtros avanzados. q Control System Toolbox 5: proporciona un entorno interactivo para modelar, analizar y disear sistemas de control. q Neural Network Toolbox 4: proporciona los algoritmos mas utilizados en el diseo y simulacin de redes de neuronas.
Uso
http://www.fi.udc.es/cc/srv/sft/Matlab6.html (2 of 3) [25/10/2004 11:41:42]
MatLab versin 6
Para la ejecucin de este entorno de trabajo en los sistemas de docencia deber realizar su conexin a la maquina de alias matlab. El programa se ejecutar utilizando la instruccin matlab.
Informacin adicional
Para una mayor informacin sobre las mejoras introducidas en esta nueva versin de Matlab se pueden consultar las siguientes pginas: q Caractersticas generales de la release 12: [HTML] q Nuevas caractersticas de Matlab 6: [HTML] [PDF] q Nuevas caractersticas de Simulink 4: [HTML] [PDF] q Nuevas caractersticas de Control System Toolbox 5: [HTML] [PDF] q Nuevas caractersticas de Neural Network Toolbox 4: [HTML] [PDF] q Nuevas caractersticas de Signal Processing Toolbox 5: [HTML] [PDF] q Nuevas caractersticas de Wavelet Toolbox 2: [HTML] [PDF] q Nuevas caractersticas de Communications Blockset 2: [HTML] [PDF]
Feature highlights for MATLAB 6 and other new and updated Release 12 products for analysis, visualization, algorithm development, and application deployment.*
7 7 8 8 9 9
NEW!
APPLICATION DEPLOYMENT
MATLAB Compiler
Data acquisition with the new Instrument Control Toolbox
10 10 10 11 11
MATLAB C/C++ Math Library MATLAB C/C++ Graphics Library MATLAB Runtime Server MATLAB Web Server
12 12
The MathWorks
M ATLAB 6
for computation, analysis, visualization, and development
MATLAB 6 makes learning and using MATLAB easier, more efficient, and more effective. The new desktop front end offers a portfolio of tools that work together to transform MATLAB into an even more intuitive, integrated environment for exploration and development. These tools provide quick access to MATLAB code, variables, data files, graphics, and online help, enabling you to find what you need when you need it. New point-and-click tools make common importing and plotting tasks easy and give you fast access to the features you need to produce presentation-quality graphics. You can modify any element of your plots without coding, eliminating the need to remember command names and graphical attributes. MATLAB 6 also incorporates the LAPACK and FFTW libraries, several new mathematical algorithms, and new interfaces to external data and to Java.
New desktop interface with all the tools for managing your MATLAB environment Command Window for interactively exploring MATLAB Command History tool for logging executed MATLAB commands and preserving them across sessions for reference and reuse Help/Help Navigator windows for accessing, reading, and searching the online HTML documentation (browser displays documentation for all installed products concurrently) Workspace Browser for viewing and modifying variable values, types, and hierarchy (integrated with Array Editor and Import Wizard) Array Editor for viewing and editing array contents in a tabular format (linked with the Workspace Browser for easy flow between variable viewing and editing) Launch Pad for accessing documentation, demos, and GUI-based tools from all installed MathWorks products
The new MATLAB desktop configured with the Command Window and the Launch Pad, Workspace Browser, Command History, and Array Editor tools. The data visible in the Array Editor corresponds to the highlighted variable in the Workspace Browser window.
s s
The Help window (above) displays a list of topics in the Help Navigator (left portion of window) found when the user initiated a search on transparency. The relevant help section (right portion of window) includes a 3-D graphic and the code that created it.
Current Directory browser for viewing, maintaining, and searching MATLAB files Enhanced M-file Editor/Debugger for creating, editing, and debugging MATLAB M-files
MATLAB Java interface for calling Java code directly from MATLAB includes support for creating and using Java objects, allowing you to use Java libraries directly from MATLAB. GUIDE, a MATLAB tool for GUI prototyping and development, is now more responsive, has an intuitive look
and feel, and provides more powerful tools for layout and alignment, property viewing and setting, and menu editing. When a new GUI is saved, MATLAB captures the results in an M-file in a structured outline framework that can serve as the basis for developing an entire application.
Function handle data type stores function information for faster function evaluation with feval. New MATLAB add-in for Visual Studio lets you create MATLAB functions (MEX-files) from C and C++ code in the Microsoft Visual Studio environment.
Display of 2-D images, surfaces, and volumes as transparent objects, enabling visualization of obscured layers of overlapping data and interior views of closed volumes Camera toolbar and menu options to control the point of view (orbit, tilt, vertical, horizontal); principal axis (scene orientation); scene light; and projection type
OpenGL rendering, offering significant increases in display speed with graphics hardware Improved performance for large data sets and animations
View of a lit 3-D isosurface with endcaps using the new smooth3 function to smooth the data. The new camera control toolbar is visible below the plot toolbar.
s s
New plotting toolbar and menus for easily creating, editing, and annotating plot titles, legends, axis labels, freeform text, arrows, and lines Functions for overlaying plots of basic data statistics for x and y, such as minimum, maximum, and mean New graphical Property Editor for viewing and modifying any plot or GUI attribute Windows-style page setup for improved hardcopy output
Basic Fitting GUI for computing polynomial fits and spline interpolation, with optional display of one or more fits on the plot Additional Basic Fitting options, including: Saving the fit to the workspace Computing and displaying the fit residuals Evaluating a fit (by interpolation or extrapolation) and producing a table or plot of the results Annotating a plot with fit equations and residuals
This 2-D MATLAB graphic tracks CO2 concentration over time (measured in years). Using the Basic Fitting menu option in the new graphics toolbar Tools menu and the Basic Fitting dialog (right), 4th and 7th degree polynomial fits have been interactively applied to the data.
Data compiled by J.M. Barnola et al., Worldwatch Institute.
s s s s s s
New Import Wizard for easy importing of external data from a file into the MATLAB workspace Serial port interface for direct access to peripheral devices such as modems, printers, and scientific instruments via your computers RS-232, RS-485, and RS-422 ports (PC, Solaris, Linux) Importing of Microsoft Excel worksheets Improved figure export to other programs, such as Microsoft Word and PowerPoint (Clipboard via EMF files) Importing and exporting of Windows AVI files (uncompressed only for UNIX) Importing of GIF format data files Importing of Windows Icon and Cursor files (all platforms) CCITT Group 3 and 4 fax support for TIFF files The Import Wizard allows you to preview the contents of data files before importing them. A preview of the list of variables is displayed in the membrane.mat file (left). The data in the variable L (highlighted) is displayed in the window on the right.
s s
Matrix math in MATLAB now incorporates the well-known LAPACK library (which replaces LINPACK and EISPACK), increasing MATLABs speed on computations involving matrices of order several hundred. FFT functions such as fft and ifft now rely on the MIT FFTW library, resulting in speedups particularly for composite, prime, and large prime factor array lengths. New functions let you write C MEX-files that call LAPACK and BLAS directly from MATLAB. Qhull-based functions extend Delaunay functionality to three or more dimensions. New griddatan and griddata3 functions enable data gridding and hyper-surface fitting for three or more dimensions.
New differential equation solvers solve two-point boundary value problems for ODEs by collocation initial-boundary value problems for parabolic-elliptic PDEs. The eigs and svds sparse matrix computation functions now use the well-known Fortran ARPACK library. The symmlq, minres, and lsqr sparse matrix computation functions now solve symmetric indefinite and rectangular systems. Faster, more accurate quadrature algorithms now handle singularities.
s s s s s
Support for: GPIB (IEEE-488, HPIB) interfaces from Agilent, CEC, ComputerBoards, IOTech, Keithley, and National Instruments VISA (Serial, GPIB, VXI, GPIB-VXI) interfaces from Agilent and National Instruments Graphical user interfaces for instrument setup and communication Reading and writing of binary and ASCII data Event handling for errors, timeout, bytes available, data written, and other events Recording of data transferred to and from instruments Synchronous and asynchronous (blocking and non-blocking) read and write Advanced serial port (RS-232, RS-422, RS-485) support
The Instrument Control Toolbox provides tools for communicating with instruments and external devices. Two GUIs, instrcreate and instrcomm , allow you to easily configure and control your instruments.
Support for ComputerBoards devices, including hardware that supports analog input, analog output, and digital I/O Data Acquisition Adaptor Kit for developing custom interfaces to data acquisition devices
Data read into MATLAB can be analyzed and visualized while it is being acquired. Here, a signal from an oscilloscope is visualized in a MATLAB graphics window.
Group qualifier in the Where Clause dialog makes it easier to interactively select multiple query criteria. Report Generator function enables access to the MATLAB Report Generator directly from within the Visual Query Builder.
The new Group option in the Where Clause dialog makes it easier to graphically select multiple query criteria.
New GUI-driven Filter Design and Analysis Tool provides functions for interactively designing, evaluating, and comparing filters. SPTool can now play a selected portion of a signal to a sound card, eliminating the need to create subsets of the signal before listening. SPTool offers signal markers with improved readouts that you can easily manipulate.
FIR filter enhancements include automatic order adjustment and improvements to remez.
FDATool lets you create and edit lowpass, highpass, bandpass, and bandstop FIR and IIR digital filters. You can graphically design filters from scratch or import previously designed filters.
Provides advanced techniques for designing, simulating, and analyzing digital filters Simplifies the design of fixed-point filters and analysis of quantization effects Extends the capabilities of the Signal Processing Toolbox, adding architectures and design methods for complex real-time DSP applications
New SISO Design Tool for compensator design Enhanced LTI Viewer with data markers, better grids, and sharper plots Tools for setting preferences and customizing plots
Algorithmic enhancements, including stability margins and sharper root locus plots Comprehensive new Getting Started manual The SISO Design Tool simplifies the task of designing controllers. You can click-anddrag to move the compensator poles and zeros and then automatically update the open- and closed-loop response plots.
GUI tools for: Entering, importing, and exporting data Creating, initializing, training, and simulating networks Visualizing and evaluating network performance New control system examples that illustrate model predictive control, feedback linearization, and model reference adaptive control
s s
Performance benchmarks for selecting the appropriate algorithm for your application Functions that apply weight and bias learning rules in both batch and incremental mode
The Neural Network user interface allows you to import and export data, as well as create, view, train, and simulate networks.
Statistics Toolbox 3
The Statistics Toolbox includes functions and interactive tools for analyzing historical data, modeling and simulating systems, developing statistical algorithms, and learning and teaching statistics. Version 3 of the Statistics Toolbox enhances support for linear models, with new functions for the analysis of variance and support for additional regression techniques. Also included is new support for nonnormal data using robust techniques, generalized linear models for a variety of nonnormal distributions, and nonparametric techniques.
s s s s s
New linear model functions, including: Multivariate ANOVA, with graphics functions for examining data Multi-way and nonparametric ANOVA Analysis of covariance (ANOCOVA) Multiple comparisons of means and other estimates Multiple response surface fitting Calculation of simultaneous confidence bounds Support for robust regression and generalized linear models Capability for importing numeric and text data from tab-delimited files
s s s
Additional functions for distribution testing and plotting New fractional factorial design generation Multivariate t random number generation The gplotmatrix function creates a matrix of scatter plots. In this example four measures of automobile performance are compared: miles per gallon (MPG), acceleration, weight, and horsepower. You can also use the function to group variables. In this example, the year of manufacture has been added to the analysis.
Spline Toolbox 3
The Spline Toolbox provides powerful features for data fitting and visualization and for interpolation and extrapolation, allowing you to fit a curve or surface through a set of observational data. Version 3 of the Spline Toolbox gives you easy access to this functionality through a new GUI, as well as features that help you learn about and work with splines more easily and productively.
New graphical user interface allows you to: Create and manage various spline approximations Add, delete, and move data or knots Vary parameters that affect a spline fit View the first or second derivative of a spline or its error Save splines to the workspace Observe the underlying toolbox commands that generate the spline
New command-line option that lets the approximation functions determine the knots Enhanced documentation with an expanded tutorial and a new glossary
With the new Spline Tool you can view and compare multiple spline fits on the same plot.
s s
Improved optimization of generated C/C++ code Support for the inclusion of MEX-files in stand-alone applications Support for the compilation of M-files containing: input calls with no workspace variable arguments load/save eval calls with no workspace variable arguments pause Function handles (New MATLAB feature) New MLIB file capability for packaging multiple compiled files as a single, shared library The MATLAB add-in for Visual Studio, a new feature in MATLAB 6, allowing you to compile, edit, and run M-files from Microsoft Visual Studio using the Compiler Suite Folding for scalar and non-scalar valued array constants New support for integer data types (int 8, 16, 32 and uint 8, 16, 32), enabling the conversion of image processing applications to C/C++ code
Using the MATLAB add-in for Visual Studio you can compile, edit, and run M-files within the Microsoft Visual C/C++ environment.
The Compiler Suite lets you automatically convert many MATLAB applications, like this windplot example, to C and C++.
10
New buildp function generates runtime p-code for applications automatically. depfun now locates Java class-dependent functions. Improved documentation provides more detailed examples and templates, more comprehensive descriptions of product features, and additional information on application setup.
The Runtime Server lets you convert any MATLAB application to a stand-alone deployable application. This Query by Singing example queries 360 songs through pattern recognition. The user triggers the song-retrieval process by singing part of the song.
The NT Web Server architecture now keeps MATLAB sessions open once started, significantly reducing startup time. System administrators can now limit user access (particularly beneficial when the Web Server application is operating outside a firewall or directly on the HTTP server machine). The Web Server can now run on a system whose architecture differs from that of the HTTP server machine. The aeronautical, financial, and mechanical applications shown here are among the many Web-deployable applications that you can develop with the MATLAB Web Server.
11
Access to data from Interactive Datas Remote Plus Access to data from Yahoo!s financial Web site, quote.yahoo.com IDC and Yahoo! support incorporated into the Datafeed Toolbox graphical user interface In this example, the Datafeed Toolbox interface is used to make a Bloomberg connection and then request and chart data for a stock price.
Create and manage the following instrument portfolios: Bonds and options on bonds Fixed rate and floating rate notes Caps and floors Vanilla swaps Calculate prices and sensitivities based on the Heath-Jarrow-Morton (HJM) model or on a given interest rate term structure Perform hedging analysis
The treeviewer function displays a diagram of the HJM tree, allowing you to interactively examine the values on the nodes of the tree. This example shows the prices of a 4% bond along the top and bottom branch paths of the HJM price tree.
The MathWorks
9858v01 10/00
2000 by The MathWorks, Inc. MATLAB, Simulink, Stateflow, Handle Graphics, and Real-Time Workshop are registered trademarks, and Target Language Compiler is a trademark of The MathWorks, Inc. Other product or brand names are trademarks or registered trademarks of their respective holders.
Simulink 4
KEY FEATURES
USABILITY
s s s s s Extensive library of predefined blocks Graphical debugger Model Browser for navigating model hierarchies Finder for searching models and libraries Customizable blocks that can incorporate existing C, Ada, MATLAB, and Fortran code
Creating Models
Simulink provides a complete set of modeling tools that you can use to quickly develop detailed block diagrams of your systems. Features such as block libraries, hierarchical modeling, signal labeling, and subsystem customization provide a powerful set of capabilities for creating, modifying, and maintaining block diagrams. These modeling features, together with Simulinks comprehensive set of predefined blocks, make it easy to create concise representations of your systems, regardless of their complexity.
COMPUTATIONAL SUPPORT
s Linear, nonlinear, continuous-time, discrete-time, multirate, conditionally executed, mixed-signal, and hybrid systems s Support for matrix signals and operations s Bitwise Logical Operator block logically masks, inverts, or shifts the bits of an unsigned integer signal
An engine model uses Trigger blocks to model conditionally executed behavior. As a function of the crankshaft angle, a pulse triggers a cylinder to fire.
1 Desired rpm pi/30 rpm to rad/s Kp Proportional Gain Ki Integral Gain 0 2 N
integrator input enable integration controller output
1 mass(k+1)
[0.152]
1 z
1 mass(k)
Init
Unit Delay
2 Trigger trigger
prevent windup
KEY FEATURES
(continued)
The Library Browser makes it easy to navigate through block libraries and then drag and drop selected blocks onto your model.
S-Functions
An S-function (system-function) is a custom code module that defines the behavior of a Simulink block. Simulink provides templates for creating your own S-functions using existing or newly-developed code (C, Ada, Fortran, or MATLAB). Once you have created an S-function, you can include it in your model, using Simulinks S-function block. S-functions reduce the time required to model large-scale systems by allowing you to incorporate existing code into your
model. Simulink provides multi-port and multi-rate S-function support to enhance usability and permit different sample times (C and MATLAB only).
Masks
Simulinks mask editor allows you to create a custom user interface, called a mask, for any subsystem or S-function block. The mask can include a custom icon, parameter dialog, online help, and initialization script. Custom masks allow you to tailor a blocks appearance and user interface for specific applications.
This feature makes it easy to reuse blocks across multiple systems, as well as systems with large numbers of models, and models with many levels. You can modify a blocks behavior and its attributes in every model simply by applying the change to the library source.
The Simulink Explorer provides you with a graphical user interface for viewing and editing Simulink data objects. Using the Simulink Explorer, you can view most classes of variables in the MATLAB workspace, and filter and sort variables by variable name and class. You can also view and edit property values. models. You can view and edit all Simulink data with the Simulink Explorer.
Short-Time Spectrum
DF2T
The short-time fast Fourier transform (FFT) block is a masked subsystem in this model, built using the DSP Blockset. The parameters for the short-time FFT block are controlled through the dialog box (top right image). The block diagram for the detailed subsystem (center image) remains hidden from view until the user chooses to reveal it.
In
Out
Normalization
The Mux block is used to collect multiple signals into a vectored signal bundle that can function as a data bus. The Demux block is used to disassemble vectored signals so that they can be accessed as individual signals. The Bus Selector block provides support for larger models by making it easy to select a subset of signals from a bus defined by a Mux or another Bus Selector block. Because most Simulink blocks support vectored operations, you can greatly reduce the number of blocks needed to model your system. This results in clean, simple, and easy-to-read block diagrams.
represented by a matrix. Each matrix element represents the value of the corresponding signal element at the current time step. You can use Simulink source blocks (for example, Sine Wave or Constant) to generate matrix signals. You can use the following Simulink blocks for matrix operations on matrix signals: The Product block supports both elementby-element and matrix multiplication and inversion of inputs. The Gain block supports matrix and element-by-element multiplication of the input signal by a gain factor. Both input signals and gain factors can be matrices. You can use Simulinks Mux and Demux blocks to multiplex matrix signals. For example, you can: Generate signal buses by feeding matrix signals into Mux blocks along with vector or scalar signals Manipulate the elements of a signal bus by splitting it into its components using a Demux block, and then connecting the demuxed signals to nonvirtual blocks, such as the Gain block
1-exp(-deltat1/Ts) z-exp(-deltat1/Ts) Stick Filter 1-exp(-deltat1/Tal) z-exp(-deltat1/Tal) Zero-Order Hold Alpha Sensor Filter Zero-Order Hold Zero-Order Hold Kf 1 Ka T z-1 Discrete-Time Integrator Actuator Pos.
ActPos
1 States
Ki
Act. Comd.
StopInt
Error
Anti-Wind-Up
-K-
This Simulink model represents a digital control system for an aircraft. The Simulink debugger allows you to graphically diagnose modeling errors. The debugger lets you step through the simulation block by block, or run to a breakpoint. The currently executing block is displayed in yellow. You can also display block states, block inputs and outputs, and other information while running a model.
Template
Act. Pos. Cmd. Act. Meas.
Configurable Actuator
Act. Pos. Cmd. [Linear] Act. Meas.
To create a configurable subsystem, you first create a library of blocks representing the various block configurations. Then, within a model, you can choose a block from your library using the configurable subsystem's right-click menu.
and systems with state events (such as discontinuities, including instantaneous changes in plant dynamics).
Simulation
After building your block diagram in Simulink, you can debug it using the interactive Simulink debugger. Then, you can run interactive simulations and view the results live. The powerful suite of solvers available in Simulink make simulation results extremely accurate.
Simulink Debugger
The Simulink debugger is an interactive tool for locating and diagnosing errors in a Simulink model. It enables you to quickly pinpoint problems in your model by running simulations step-by-step and displaying intermediate block states and input and output values. The
driven behavior. The seamless interaction between Simulink and Stateflow gives you the ability to model and simulate your systems dynamic and event-driven behavior as a single, integrated system. (For example, Simulink and Stateflow share an integrated Finder.) Designers of automotive, aerospace, telecommunications, and many other types of embedded systems have a complete solution to perform faster, more accurate and extensive simulations of complex, large-scale systems. You can use Stateflow charts to include supervisory control logic within your Simulink model for activating or deactivating conditionally executed subsystems in Simulink. The Stateflow chart receives input from the Simulink model, determines the actions to be taken, changes states appropriately, and sends logic signals to activate or deactivate the triggered and enabled subsystems in Simulink.
double-precision floating point; single-precision floating point; signed and unsigned 8-, 16-, and 32-bit integers; and Boolean.
Related Products
Simulink is the foundation for a family of design solutions, spanning DSP, communications, control, and power system design. Companion products include: Real-Time Workshop for code generation Stateflow for event-driven systems and logic design Simulink Performance Tools for simulation acceleration and more Block libraries for specialized applications, such as the DSP Blockset, the Fixed-Point Blockset, the Power System Blockset, and the Communications Blockset. s
Analysis
Simulink includes many features for detailed system analysis. Key capabilities include: linearization, equilibrium point determination, animation, parameter optimization, and parametric analysis.
Data Typing
Simulink supports complex numbers for basic blocks and complex/real conversions. In addition, the Data Type Conversion block allows you to convert a signal of one type (such as a float) to a signal of another type (int32, for example). Many of the blocks in Simulink support several data types. The ability to specify the data types of a models signal and block parameters is particularly useful in realtime applications such as microcontrollers and DSPs. With this capability, you can specify the optimal data types required to represent signals, block parameters, and mathematical operations exactly as they are represented on these devices. Additionally, by choosing the appropriate data types for your models signals and parameters, you can dramatically increase the performance and decrease the size of code generated from the model. Supported data types are
For demos, application examples, tutorials, user stories, and pricing: Visit www.mathworks.com Contact The MathWorks directly US & Canada 508-647-7000 Benelux France Germany Spain Switzerland UK +31 (0)182 53 76 44 +33 (0)1 41 14 67 14 +49 (0)89 995901 0 +34 93 362 13 00 +41 (0)31 954 20 20 +44 (0)1223 423 200
Animation
Simulink provides immediate access to MATLABs powerful 2-D and 3-D graphics and animation capabilities. You can use MATLAB to enhance your visual displays and gain deeper insight into your systems behavior as the simulation progresses.
Visit www.mathworks.com to obtain contact information for authorized MathWorks representatives in countries throughout Asia Pacific, Latin America, the Middle East, Africa, and the rest of Europe.
9320v02 10/00
2000 by The MathWorks, Inc. MATLAB, Simulink, Stateflow, Handle Graphics, and Real-Time Workshop are registered trademarks, and Target Language Compiler is a trademark of The MathWorks, Inc. Other product or brand names are trademarks or registered trademarks of their respective holders.
KEY FEATURES
s LTI Viewer, an interactive GUI for analyzing and comparing linear-time-invariant (LTI) systems s SISO Design Tool, an interactive GUI for analyzing and tuning single-input/single-output (SISO) feedback control systems s GUI suite for setting preferences and properties, giving you complete control over the visualization of time and frequency plots s Specialized data structures, called LTI objects, for concisely representing transfer function, state-space, zero/pole/gain, and frequency response data model formats s Support for multi-input/multi-output (MIMO) systems, continuous-time and sampled-data systems, and systems with time delays s Functions and operators for connecting LTI models with complex block diagrams (series, parallel, and feedback connections) s Support for a variety of discrete-to-continuous conversion methods s Functions for plotting the time and frequency responses of systems and comparing several systems with a single command s Tools for classical and modern control design techniques, including root locus, loop shaping, pole placement, and LQR/LQG regulation
A linked LTI Viewer With the SISO Design GUI, you can tune gains and design compensators using root locus and loop shaping techniques. The compensator parameters can be changed graphically by interacting with the root locus and Bode diagrams. When you modify the compensator gain or dynamics, the open- and closed-loop response plots update automatically, providing useful guidance in the tuning process. displays open- and closed-loop response plots.
In the following example, sys1 and sys2 are linear models being combined with a simple command-line operation:
>> sys1 + sys2 % parallel connection of systems sys1 and sys2
You can also manipulate and analyze entire collections of linear models at the same time using LTI model arrays.
Model Characteristics
The Control System Toolbox contains commands to query model characteristics such as the I/O dimensions, poles, zeros, and DC gain. These commands apply to both continuous- and discrete-time models.
Building Models
The Control System Toolbox supports four linear model representations: state-space models (SS), transfer functions (TF), zero/pole/gain (ZPK) models, and frequency response data (FRD) models. LTI objects are provided for each model type. In addition to model data, LTI objects can store the sample time of discrete-time systems, time delays, input and output names, notes about the model, and more. Using LTI objects, you can manipulate models as single entities and combine them using matrix-like operations.
The LTI Viewer can display up to seven different plot types simultaneously, including step, impulse, Bode (magnitude and phase or magnitude only), Nyquist, Nichols, sigma, and pole/zero. Using right-click menu options, you can access several LTI Viewer controls and options, including: Plot Typechanges the plot type Systemsselects or deselects any of the models loaded in the LTI Viewer Characteristicsdisplays key response characteristics and parameters Zoomzooms in and out of plot regions Gridadds grids to your plots Propertiesopens the Property Editor, where you can customize plot attributes
In addition to right-click menus, all response plots include data markers. These allow you to scan the plot data, identify key data, and determine the source system for a given plot.
Current Compensator
Feedback Structure
Gain Margin
Root Locus
The SISO Design GUI can be used for both continuous- and discrete-time plants. Here, the root locus and Bode diagrams are shown for a discrete-time plant.
d + + u
This example illustrates the design of a simple LQG regulator. The code excerpt below shows how the controller is designed and how the closed-loop system is created. The impulse-response plot shows a comparison between the open-loop system (red) and the closedloop system (blue). Right-click menus simplify customizations of plots and GUIs
G = ss(tf(100,[1 1 100])) Klqr = lqry(G,10,1) Kest = kalman(G(:,[1 1]),1, 0.01) F = lqgreg(Kest, Klqr) clsys = feedback(G,F,+1) impulse(G, 'r', clsys, 'b')
% % % % % %
state-space plant model design feedback gain matrix Kalman estimator design combine regulator and estimator form closed-loop system generate and plot impulse response
LTI Viewer associated with your SISO Design Tool automatically updates the response plots that you have chosen. The SISO Design Tool: Integrates most Control System Toolbox functionality into a single GUI Dynamically links time, frequency, and pole/zero views, offering complementary insights into the design objectives and issues Provides graphical insight into design tradeoffs Helps manage complexity and design iterations
Pull-down and right-click menus give you the flexibility to perform control design tasks with one mouse-click. In particular, you can: Drop compensator poles and zeros in the root locus or Bode diagram views Add lead/lag networks and notch filters Graphically tune compensator parameters with the mouse Inspect closed-loop responses (using the LTI Viewer) Adjust phase and gain margins Convert models between discrete- and continuous-time
designing optimal dynamic regulators. It enables you to trade off regulation performance and control effort and take into account process disturbances and measurement noise.]
The Control System Toolbox Preferences dialog box allows you to specify options that are saved from session to session. The LTI Viewer and SISO Design GUIs have preference dialog boxes for setting plot options within these GUIs. Finally, individual response plots have property editors for further customization.
Related Products
The MathWorks provides several products that are especially relevant to the tasks that you can perform with the Control System Toolbox. These include: Simulinka comprehensive environment for modeling, simulating, and analyzing dynamic systems in a block diagram format
Nonlinear Control Design Blockset an optimization-based approach to control system design that tunes parameters based on user-defined, time-domain performance constraints System Identification Toolboxtools for building linear models of dynamic systems from measured input/output data Fuzzy Logic Toolboxtools for developing fuzzy logic algorithms Robust Control Toolboxtools for the modeling, analysis, and design of robust multivariable feedback control systems using H techniques -Analysis and Synthesis Toolbox computational algorithms for the structured singular value, , applicable to robustness and performance analysis for systems with modeling and parameter uncertainties
Linear Matrix Inequality Toolbox convex optimization algorithms for solving linear matrix inequalities (LMI), with application to robust control, multiobjective control, and gain scheduling Model Predictive Control Toolbox a complete set of tools for implementing model predictive control strategies s
Sample Commands
General
ctrlpref damp
Create a transfer function model Create a zero/pole/gain model Create a state-space model Create a frequency response data model Set/modify properties of LTI models
Natural frequency and damping of system poles DC (low frequency) gain Norms of LTI systems Covariance of response to white noise
State-Space Models
rss, drss ss2ss ctrb, obsv gram minreal ssbal balreal modred
Time-Domain Analysis
ltiview step impulse initial lsim
Data Extraction
tfdata zpkdata ssdata get
Response analysis GUI (LTI Viewer) Step response Impulse response Response of state-space system with given initial state Response to arbitrary inputs
Extract numerator(s) and denominator(s) Extract zero/pole/gain data Extract state-space matrices Access values of LTI model properties
Random stable statespace models State coordinate transformation Controllability and observability matrices Controllability and observability gramians Minimal realization and pole/zero cancellation Diagonal balancing of state-space realizations Gramian-based input/output balancing Model state reduction
Frequency-Domain Analysis
ltiview bode sigma nyquist nichols margin allmargin freqresp
Conversions
ss zpk tf frd c2d d2c d2d
Conversion to state-space Conversion to zero/pole/gain Conversion to transfer function Conversion to frequency data Continuous-to-discrete conversion Discrete-to-continuous conversion Resample discrete-time model
Response analysis GUI (LTI Viewer) Bode diagrams of the frequency response Singular value frequency plot Nyquist plot Nichols plot Gain and phase margins All crossover frequencies and related gain/phase margins Frequency response over a frequency grid
Time Delays
totaldelay delay2z pade
Total delay between each input/output pair Replace delays by poles at z=0 or FRD phase shift Pade approximation of time delays
Classical Design
sisotool rlocus
System Interconnections
append
SISO design GUI (root locus and loop shaping techniques) Evans root locus
dare
Solve continuous Lyapunov equations Solve discrete Lyapunov equations Solve continuous algebraic Riccati equations Solve discrete algebraic Riccati equations
Group LTI systems by appending inputs and outputs Generalized parallel connection Generalized series connection Feedback connection of two systems Generalized feedback inter-connection Derive state-space model from block diagram description
Pole Placement
place estim reg
MIMO pole placement Form estimator given estimator gain Form regulator given statefeedback and estimator gains
For demos, application examples, tutorials, user stories, and pricing: Visit www.mathworks.com Contact The MathWorks directly US & Canada 508-647-7000 Benelux France Germany Spain Switzerland UK +31 (0)182 53 76 44 +33 (0)1 41 14 67 14 +49 (0)89 995901 0 +34 93 362 13 00 +41 (0)31 954 20 20 +44 (0)1223 423 200
LQR/LQG Design
lqr, dlqr lqry lqrd kalman kalmd
Model Dynamics
pole zero pzmap
Linear-quadratic (LQ) statefeedback regulator LQ regulator with output weighting Discrete LQ regulator for continuous plant Kalman estimator Discrete Kalman estimator for continuous plant
Visit www.mathworks.com to obtain contact information for authorized MathWorks representatives in countries throughout Asia Pacific, Latin America, the Middle East, Africa, and the rest of Europe.
9318v02 10/00
2000 by The MathWorks, Inc. MATLAB, Simulink, Stateflow, Handle Graphics, and Real-Time Workshop are registered trademarks, and Target Language Compiler is a trademark of The MathWorks, Inc. Other product or brand names are trademarks or registered trademarks of their respective holders.
KEY FEATURES
s
Graphical user interface (GUI) for creating, training, and simulating your neural networks Support for the most commonly used supervised and unsupervised network architectures A comprehensive set of training and learning functions A suite of Simulink blocks, as well as documentation and demonstrations of control-system applications Automatic generation of Simulink models from neural network objects Modular network representation, allowing an unlimited number of input sets, layers, and network interconnections Pre- and post-processing functions for improving network training and assessing network performance Routines for improving generalization Visualization functions for viewing network performance
s s
s s
This window displays portions of the neural network GUI. Dialogs and panes allow you to visualize your network (top), evaluate training results (bottom), and manage your networks (center).
The MathWorks
Batch training with weight and bias learning rules BFGS quasi-Newton backpropagation Bayesian regularization Cyclical order incremental update Powell-Beale conjugate gradient backpropagation Fletcher-Powell conjugate gradient backpropagation Polak-Ribiere conjugate gradient backpropagation Gradient descent backpropagation Gradient descent with adaptive learning rate (lr) backpropagation Gradient descent with momentum backpropagation Gradient descent with momentum & adaptive lr backpropagation Levenberg-Marquardt backpropagation One step secant backpropagation Random order incremental update Resilient backpropagation (Rprop) Sequential order incremental update Scaled conjugate gradient backpropagation
traincgb traincgf traincgp traingd traingda traingdm traingdx trainlm trainoss trainr trainrp
trains trainscg
Unsupervised Networks
Unsupervised neural networks are trained by letting the network continually adjust itself to new inputs. They find relationships within data as it is presented and can automatically define classification schemes. The Neural Network Toolbox supports two types of selforganizing unsupervised networks: Competitive layers recognize and group similar input vectors. By using these groups, the network automatically sorts the inputs into categories.
Self-organizing maps learn to classify input vectors according to similarity. Unlike competitive layers, they also preserve the topology of the input vectors, assigning nearby inputs to nearby categories.
NN Predictive Controller
Clock
Flow Rate Concentration
Plant Output
X(2Y) Graph
This window displays a Simulink model that includes the neural network predictive control block and CSTR plant model (top left). Dialogs and panes allow you to visualize validation data (lower left) and manage the neural network control block (lower center) and your plant identification (right).
1 p{1}
p{1}
a{1}
Layer 1
p{1} a{2} a{1}
a{1}
1
a{2}
p{1} 2 a{1}
Layer 2 a{1}
p{1} a{1} a{3}
1 y{1}
a{2}
a{2}
Layer 3
Neural network simulation blocks for use in Simulink can be automatically generated using the gensim command. Here, a three-layer neural network has been converted into Simulink blocks.
Simulink Support
Once a network has been created and trained, it can be easily incorporated into Simulink models. A simple command (gensim) automatically generates network simulation blocks for use with Simulink. This feature also makes it possible for you to view your networks graphically.
Improving Generalization
Improving the networks ability to generalize helps prevent overfitting, a common problem in neural network design. Overfitting occurs when a network has memorized the training set but has not learned to generalize to new inputs. Overfitting produces a relatively small error on the training set but will produce a much larger error when new data is presented to the network. The Neural Network Toolbox provides two solutions to improve generalization: Regularization modifies the networks performance function, the measure of error that the training process minimizes. By changing it to include the size of the weights and biases, training produces a network that not only performs well with the training data, but produces smoother behavior when presented with new data. Early stopping is a technique that uses two different data sets: the training set, which is used to update the weights and biases, and the validation set, which is used to stop training when the network begins to overfit the data.
For demos, application examples, tutorials, user stories, and pricing: Visit www.mathworks.com Contact The MathWorks directly US & Canada 508-647-7000 Benelux France Germany Spain Switzerland UK +31 (0)182 53 76 44 +33 (0)1 41 14 67 14 +49 (0)89 995901 0 +34 93 362 13 00 +41 (0)31 954 20 20 +44 (0)1223 423 200
Visit www.mathworks.com to obtain contact information for authorized MathWorks representatives in countries throughout Asia Pacific, Latin America, the Middle East, Africa, and the rest of Europe.
The MathWorks
8511v04 10/00
2000 by The MathWorks, Inc. MATLAB, Simulink, Stateflow, Handle Graphics, and Real-Time Workshop are registered trademarks, and Target Language Compiler is a trademark of The MathWorks, Inc. Other product or brand names are trademarks or registered trademarks of their respective holders.
KEY FEATURES
s A comprehensive set of signal and linear system models s Tools for analog filter design s Tools for Finite Impulse Response (FIR) and Infinite Impulse
FDATool (above) is a built-in GUI that lets you design many types of FIR and IIR filters. You select the filter types from the available methods in the GUI. This diagram shows the GUI with Filter Design Toolbox installed. The figure at left shows an annotatable print preview of the filters magnitude response.
The MathWorks
Sample Functions
Filter Analysis
abs angle freqs freqspace freqz freqzplot grpdelay impz unwrap zplane fir1
Magnitude Phase angle Laplace transform requency response Frequency spacing for frequency response. Z-transform frequency response Plot frequency response data Group delay Discrete impulse response Unwrap phase Discrete pole-zero plot
fir2
fircls
fircls1
Filter Implementation
conv conv2 deconv fftfilt filter filter2 filtfilt filtic latcfilt medfilt1 sgolayfilt sosfilt
upfirdn
Convolution 2-D convolution Deconvolution Overlap-add filter implementation Filter implementation Two-dimensional digital filtering Zero-phase version of filter Determine filter initial conditions Lattice filter implementation 1-Dimensional median filtering Savitzky-Golay filter implementation Second-order sections (biquad) filter implementation Up sample, FIR filter, down sample
Window based FIR filter design - low, high, band, stop, multi FIR arbitrary shape filter design using the frequency sampling method Constrained Least Squares filter design arbitrary response Constrained Least Squares FIR filter design low and highpass Optimal least-squares FIR filter design Raised cosine FIR filter design Interpolation FIR filter design Kaiser window design based filter order estimation Optimal Chebyshevnorm FIR filter design Remez design based filter order estimation Savitzky-Golay FIR smoothing filter design
cheb2ap
ellipap
Bessel filter prototype Butterworth filter prototype Chebyshev type I filter prototype (passband ripple) Chebyshev type II filter prototype (stopband ripple) Elliptic filter prototype
Bessel analog filter design Butterworth filter design Chebyshev type I filter design Chebyshev type II filter design Elliptic filter design
lp2bs
lp2lp
Lowpass to bandpass analog filter transformation Lowpass to bandstop analog filter transformation Lowpass to highpass analog filter transformation Lowpass to lowpass analog filter transformation
Filter Discretization
bilinear impinvar
Bilinear transformation with optional prewarping Impulse invariance analog to digital conversion
Convolution matrix Complex and nonlinear phase equiripple FIR filter design
cheb2ord ellipord
polystab polyscale
Lattice or lattice ladder to transfer function conversion Polynomial stabilization Scale roots of polynomial
sos2zp ss2sos
tf2sos
zp2ss zp2tf
Z-transform partial fraction expansion Second-order sections to state-space conversion Second-order sections to transfer function conversion Second-order sections to zero-pole conversion State-space to secondorder sections conversion State-space to transfer function conversion State-space to zero-pole conversion Transfer function to lattice or lattice ladder conversion Transfer function to second-order sections conversion Transfer function to state-space conversion Transfer function to zero-pole conversion Zero-pole to secondorder sections conversion Zero-pole to state-space conversion Zero-pole to transfer function conversion
Fast Fourier transform 2-D fast Fourier transform Swap vector halves Discrete-time analytic signal via Hilbert transform Inverse discrete cosine transform Inverse fast Fourier transform Inverse 2-D fast Fourier transform
pmusic
pwelch
pyulear
rooteig
rootmusic
Cepstral Analysis
cceps icceps rceps
tfe
Complex cepstrum Inverse complex cepstrum Real cepstrum and minimum phase reconstruction
Power spectral density estimate via the MUSIC method Power spectral density estimate via Welch's method Power spectral density estimate via the YuleWalker AR Method Sinusoid frequency and power estimation via the eigenvector algorithm Sinusoid frequency and power estimation via the MUSIC algorithm Transfer function estimate Cross-correlation function 2-D cross-correlation Covariance function
Parametric Modeling
arburg arcov armcov
Windows
bartlett blackman boxcar chebwin hamming hann kaiser triang
Bartlett window Blackman window Rectangular window Chebyshev window Hamming window Hanning window Kaiser window Triangular window
pcov
peig
periodogram
pmcov
Transforms
czt dct dftmtx
pmtm
Coherence function estimate Correlation coefficients Autocorrelation matrix Covariance matrix Cross spectral density Power spectral density estimate via Burg's method Power spectral density estimate via the covariance method Power spectral density estimate via the eigenvector method Power spectral density estimate via the periodogram method Power spectral density estimate via the modified covariance method Power spectral density estimate via the Thomson multitaper method
aryule
AR parametric modeling via Burg's method AR parametric modeling via covariance method AR parametric modeling via modified covariance method AR parametric modeling via the Yule-Walker method Analog filter fit to frequency response Discrete filter fit to frequency response Prony's discrete filter fit to time response Steiglitz-McBride iteration for ARMA modeling
Linear Prediction
ac2rc
dpss
ac2poly
is2rc
lar2rc
levinson lpc
Resample data at a lower sample rate Resample data at a higher sample rate General 1-D interpolation. (MATLAB Toolbox) Resample sequence with new sampling rate Cubic spline interpolation Up sample, FIR filter, down sample
eqtflength
modulate
seqperiod
sos2cell
Waveform Generation
chirp diric gauspuls gmonopuls pulstran rectpuls sawtooth sinc square tripuls vco
lsf2poly
poly2ac
poly2lsf
poly2rc
rc2ac
rc2is
rc2lar
Swept-frequency cosine generator Dirichlet (periodic sinc) function Gaussian RF pulse generator Gaussian monopulse generator Pulse train generator Sampled aperiodic rectangle generator Sawtooth function Sinc or sin(pi*x)/(pi*x) function Square wave function Sampled aperiodic triangle generator Voltage controlled oscillator
Discrete prolate spheroidal sequences (Slepian sequences) Equalize the length of a discrete-time transfer function Modulation for communications simulation Find minimum-length repeating sequence in a vector Convert second-ordersection matrix to cell array Spectrogram, for speech signals Plot discrete data sequence Strip plot Uniform decoding of the input Uniform quantization and encoding of the input into N-bits
Specialized Operations
buffer
rc2poly
rlevinson schurrc
cell2sos
cplxpair demod
Buffer a signal vector into a matrix of data frames Convert cell array to second-order-section matrix Order vector into complex conjugate pairs Demodulation for communications simulation
30
20
They are particularly useful for visualizing time-frequency information, spectra, and pole-zero locations. For example, you can interactively design a filter by graphically placing the poles and zeroes in the z-plane. The Signal Processing Toolbox provides two GUIs: FDATool is a comprehensive tool for designing and analyzing digital filters that helps you:
-10
-20
-30
-40
0.1
0.2
0.8
0.9
Access most FIR and IIR filter design methods in the toolbox using a simplified, graphical interface for computing the discrete Fourier, discrete cosine, Hilbert, and other transforms useful in analysis, coding, and filtering. The spectral analysis methods available include Welch's, Burg's, modified covariance, Yule-Walker, the multitaper method, and the MUSIC method. Analyze filters by exchanging magnitude, phase, impulse, and step responses and by calculating group delay and pole-zero plots Import previously designed filters and filter coefficients that you have stored in the MATLAB workspace. Export filter coefficients Access additional filter design methods and quantization features of the Filter Design Toolbox (when that optional product is installed) Print filter response directly from the GUI with the option to annotate plots SPTools Filter Designer includes a Pole/Zero editor that lets you design a filter through the graphical placement of poles and zeroes. The Filter Viewer lets you view all characteristics of the filter.
Visualization
The GUIs in the Signal Processing Toolbox let you interactively view and measure signals, design and apply filters, and perform spectral analysis while exploring the effects of different analysis parameters and methods.
Filter Design
The Signal Processing Toolbox features a full suite of design methods for finite impulse response (FIR) and infinite impulse response (IIR) digital filters. These methods support the rapid design and evaluation of lowpass, highpass, bandpass, bandstop, and multiband filters such as Butterworth, Chebyshev, elliptic, Yule-Walker, window-based, leastsquares, and Parks-McClellan. The filter structures available include the direct forms I and II, lattice, lattice-ladder, and secondorder sections. You can comment among the various realizations with tools provided.
Spectral Analysis
The Signal Processing Toolbox provides unsurpassed facilities for frequency-domain analysis and spectral estimation. Several of these methods are based on a highly optimized FFT. The toolbox includes functions
A crosshair locator that locates individual data points on the spectrogram You can evaluate time/frequency information in the spectrogram by using the signal panner or the crosshair locator. This will allow you to locate data points in the spectrogram. They will display and interactively update a frequency slice of the input signal, a time slice of signal, and a readout of time and frequency values. You can call the specgramdemo from the MATLAB command line by typing specgramdemo(y,FS) where y is the input signal and Fs is the signals sampling rate. Context-sensitive help is available for specgramdemo.
Product Requirements
Specgramdemo is a user-friendly GUI that provides interactive calculations of a signals time-frequency distribution. The Signal Processing Toolbox runs on all MathWorks supported platforms. It requires MATLAB 6. s
SPTool is a suite of GUI tools providing access to many of the signal, filter, and spectral analysis functions that helps you: Measure and analyze the time-domain information of one or more signals and send audio signal to the PCs sound card Design and edit FIR and IIR filters of various lengths and types and with standard (lowpass, highpass, bandpass, bandstop, and multiband) configurations, as well as design filters by graphically placing poles and zeroes in the z-plane View the characteristics of a designed or imported filter, including its magnitude response, phase response, group delay, pole-zero plot, impulse response, and step response Apply the filter to a selected signal
Graphically analyze frequency-domain data using a variety of spectral estimation methods, including Burg, FFT, multitaper (MTM), MUSIC, eigenvector, Welch, and Yule-Walker AR
For demos, application examples, tutorials, user stories, and pricing: Visit www.mathworks.com Contact The MathWorks directly US & Canada 508-647-7000 Benelux France Germany Spain Switzerland UK +31 (0)182 53 76 44 +33 (0)1 41 14 67 14 +49 (0)89 995901 0 +34 93 362 13 00 +41 (0)31 954 20 20 +44 (0)1223 423 200
An Interactive Demo
The Signal Processing Toolbox provides specgramdemo, a user-friendly GUI that interactively calculates a signals time-frequency distribution. Specgramdemo presents: The original time series data The spectrogram of the input signal The power spectral density of the input signal A colorbar indicating the color scale of the spectrogram A signal panner that lets you focus in and out on the signal
Visit www.mathworks.com to obtain contact information for authorized MathWorks representatives in countries throughout Asia Pacific, Latin America, the Middle East, Africa, and the rest of Europe.
The MathWorks
9317v03 11/00
2000 by The MathWorks, Inc. MATLAB, Simulink, Stateflow, Handle Graphics, and Real-Time Workshop are registered trademarks, and Target Language Compiler is a trademark of The MathWorks, Inc. Other product or brand names are trademarks or registered trademarks of their respective holders.
Wavelets Packets
The wavelet packets method is a generalization of wavelet decomposition that provides a richer range of decomposition encodings. The following functions compute, decompose, and reconstruct wavelet packets; construct and manipulate wavelet packet trees; and compute entropy values and packet coefficients: bestlevt besttree entrupd wentropy wp2wtree wpcoef wpcutree wpdec wpdec2 wpfun wpjoin wprcoef wprec wprec2 wpsplt Best level tree (wavelet packet) Best tree (wavelet packet) Entropy update (wavelet packet) Entropy (wavelet packet) Extract wavelet tree from wavelet packet tree Wavelet packet coefficients Cut wavelet packet tree Wavelet packet decomposition 1-D Wavelet packet decomposition 2-D Wavelet packet functions Recompose wavelet packet Reconstruct wavelet packet coefficients Wavelet packet reconstruction 1-D Wavelet packet reconstruction 2-D Split (decompose) wavelet packet
The U.S. Federal Bureau of Investigation has selected wavelet compression techniques for their extensive fingerprint database. Here, the automatic thresholding feature of the Wavelet Toolbox produces a compressed image with about 72% zeros and 98% of the original signal. wnoise wnoisest wpbmpen wpdencmp wpthcoef wthcoef wthcoef2 wthresh wthrmngr Generate noisy wavelet test data Estimate noise of 1-D wavelet coefficients Penalized threshold for wavelet packet de-noising De-noising or compression using wavelet packets Wavelet packet coefficients thresholding Wavelet coefficient thresholding 1-D Wavelet coefficient thresholding 2-D Perform soft or hard thresholding Threshold settings manager
The Wavelet Toolbox GUI provides point-and-click access to power wavelet-processing tasks, such as automatic de-noising, with instant visualization of the results. Intervaldependent threshold settings can also be applied in the de-noising and compression tools.
For demos, application examples, tutorials, user stories, and pricing: Visit www.mathworks.com Contact The MathWorks directly US & Canada 508-647-7000 Benelux France Germany Spain Switzerland UK +31 (0)182 53 76 44 +33 (0)1 41 14 67 14 +49 (0)89 995901 0 +34 93 362 13 00 +41 (0)31 954 20 20 +44 (0)1223 423 200
Visit www.mathworks.com to obtain contact information for authorized MathWorks representatives in countries throughout Asia Pacific, Latin America, the Middle East, Africa, and the rest of Europe.
8797v02 10/00
2000 by The MathWorks, Inc. MATLAB, Simulink, Stateflow, Handle Graphics, and Real-Time Workshop are registered trademarks, and Target Language Compiler is a trademark of The MathWorks, Inc. Other product or brand names are trademarks or registered trademarks of their respective holders.
CHANNELS
AWGN channel Binary symmetric channel Multipath Rayleigh fading channel Rician fading channel
Integrators
Discrete modulo integrator Integrate and dump Modulo integrator Windowed integrator
Frequency Modulation
M-FSK modulator and demodulator
Sequence Operations
Complex phase difference Complex phase shift Interlacer and deinterlacer Repeat and derepeat Puncture and insert zero Scrambler and descrambler
UTILITY FUNCTIONS
101 dB 5 lin
Here a tutorial example shows how you can quickly build a communication system comprising a channel, modulation scheme, and coding.
Bernoulli bin Bernoulli Random Binary Generator Convolutional Encoder Convolutional Encoder Unbuffer BPSK BPSK Modulator Baseband
Tx Rx
0.01203 566 4.706e+004 Display Terminator Scalar quantizer Buffer Terminator1 Sampled Quantizer Encode AWGN Channel AWGN
Info
Re(u)
Complex to Real-Imag
Being based on Simulink, the Communications Blockset handles arbitrarily complex systems by allowing you to build and navigate models hierarchically. You can process all the multi-rate digital signals that are typical in communications systems, such as frames, bits and symbols. And you can make use of Simulinks continuous time features to model analog signals. Simulink provides the interactive, block diagram simulation environment including model construction, navigation, simulation management and debugging. It also provides primitive analog and discrete, linear and non-linear building blocks, such as arithmetic, logic and relational operators, subsystems, Laplace transforms, z-transforms, look-up tables, polynomials and switches. You also have the ability to add your own custom C code or M code modules using the Simulink S-function block. s
This BER plot can be calculated by a MATLAB script that runs your simulation many times for different Eb/No values.
For demos, application examples, tutorials, user stories, and pricing: Visit www.mathworks.com Contact The MathWorks directly US & Canada 508-647-7000 Benelux France Germany Spain Switzerland UK +31 (0)182 53 76 44 +33 (0)1 41 14 67 14 +49 (0)89 995901 0 +34 93 362 13 00 +41 (0)31 954 20 20 +44 (0)1223 423 200
Real-Time Workshop For large models or long simulation runs, Real-time Workshop can generate a standalone C executable for running multiple simulations or for co-simulation with low-level EDA tools. Stateflow You can also integrate your physical layer design in Simulink and the Communications Blockset with your linklayer design in Stateflow, The MathWorks control logic design product.
Visit www.mathworks.com to obtain contact information for authorized MathWorks representatives in countries throughout Asia Pacific, Latin America, the Middle East, Africa, and the rest of Europe.
The MathWorks
9869v00 10/00
2000 by The MathWorks, Inc. MATLAB, Simulink, Stateflow, Handle Graphics, and Real-Time Workshop are registered trademarks, and Target Language Compiler is a trademark of The MathWorks, Inc. Other product or brand names are trademarks or registered trademarks of their respective holders.