MATLAB SIGNAL PROCESSING BLOCKSET 7 Betriebsanweisung

Stöbern Sie online oder laden Sie Betriebsanweisung nach Software MATLAB SIGNAL PROCESSING BLOCKSET 7 herunter. MATLAB SIGNAL PROCESSING BLOCKSET 7 User`s guide [en] Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 738
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
Modeling
Simulation
Implementation
User’s Guide
Version 4
For Use with Simulink
®
DSP
Blockset
Seitenansicht 0
1 2 3 4 5 6 ... 737 738

Inhaltsverzeichnis

Seite 1 - Blockset

ModelingSimulationImplementationUser’s GuideVersion 4For Use with Simulink®DSPBlockset

Seite 2 - How to Contact The MathWorks:

viii ContentsVariable Integer Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-491Variable Selector . . . . . . . . . . . . . .

Seite 3 - Contents

3 Working with Signals3-60Unbuffering a Frame-Based Signal into a Sample-Based SignalYou can unbuffer a multichannel frame-based signal into a multich

Seite 4 - Working with Signals

Deconstructing Signals3-61The Signal From Workspace block generates a two-channel frame based-signal with frame size 4 (because the Samples per frame

Seite 5

3 Working with Signals3-62Importing SignalsAlthough a number of signal generation blocks are available in Simulink and the DSP Blockset, it is very co

Seite 6

Importing Signals3-63Sample-time parameter specifies the sample period of the sample-based output. See “Sample-Based Multichannel Signals” on page 3-1

Seite 7

3 Working with Signals3-64containing M consecutive samples. In other words, the workspace matrix must be oriented so as to have the independent channe

Seite 8

Importing Signals3-65•Form output after final data value = Setting to zeroThe Signal expression [A B] uses the standard MATLAB syntax for horizontally

Seite 9

3 Working with Signals3-66 As the figure above suggests, the output of the Signal From Workspace block can only be a valid sample-based signal (having

Seite 10 - DSP Function Reference

Importing Signals3-67•Channel 3: 0, 0, 0, 0, 0,...•Channel 4: 5, 5, 5,..., 0, 0, 0,...To create the model, define the following variables at the MATLA

Seite 11 - Introduction

3 Working with Signals3-68•“Constructing Multichannel Sample-Based Signals” on page 3-42Importing a Multichannel Frame-Based SignalThe Signal From Wor

Seite 12 - Welcome to the DSP Blockset

Importing Signals3-69Beginning with the first M rows of the matrix, the block releases M rows of the matrix (i.e., one frame from each channel) to the

Seite 13 - Frame-Based Operations

1IntroductionWelcome to the DSP Blockset . . . . . . . . . . . . 1-2What Is the DSP Blockset? . . . . . . .

Seite 14 - Matrix Support

3 Working with Signals3-70by the Form output after final data value by parameter. See the Signal From Workspace reference page for more information.Th

Seite 15 - Real-Time Code Generation

Importing Signals3-71The Signal expression [A B] uses the standard MATLAB syntax for horizontally concatenating matrices and appends column vectorB to

Seite 16 - What Is in the DSP Blockset?

3 Working with Signals3-72Exporting SignalsThe To Workspace and Triggered To Workspace blocks are the primary conduits for exporting signals from a Si

Seite 17 - Installation

Exporting Signals3-73to downsample a signal before exporting to the workspace, consider using the Downsample or FIR Decimation blocks. See “Converting

Seite 18

3 Working with Signals3-74 The workspace array always has time running along its third (P) dimension. Samples are saved along the P dimension whether

Seite 19 - How to Use This Guide

Exporting Signals3-75To create the model, define the following variables at the MATLAB command line.sig1 = reshape(1:100,[1 1 100]) % 1-by-1-by-100 ar

Seite 20 - Signal Dimension Nomenclature

3 Working with Signals3-76yout(:,:,1:4)ans(:,:,1) = 1 -1 0 5ans(:,:,2) = 2 -2 0 5ans(:,:,3) = 3 -3 0 5ans

Seite 21 - Sampling Nomenclature

Exporting Signals3-77 The workspace matrix always has time running along its first (P) dimension. Samples are saved along the P dimension whether the

Seite 22

3 Working with Signals3-78To create the model, define the following variables at the MATLAB command line.A = [1:100;-1:-1:-100]'; % 100-by-2 matr

Seite 23 - R12 Related Products

Exporting Signals3-79The following two sections may also be of interest:•“Creating Signals Using the Signal From Workspace Block” on page 3-38•“Constr

Seite 24

1 Introduction1-2Welcome to the DSP BlocksetWelcome to the DSP Blockset, the premier tool for digital signal processing (DSP) algorithm simulation and

Seite 25 - DSP Blockset

3 Working with Signals3-80Viewing SignalsThe following blocks in the DSP Sinks library are the key blocks for displaying signals:•Matrix Viewer•Spectr

Seite 26

Viewing Signals3-81Specify the following parameter values in the Signal From Workspace block:•Signal = mtlb•Sample time = 1•Samples per frame = 16•For

Seite 27 - Simulink on PC Platforms

3 Working with Signals3-82•Select Compact display from the right-click menu to allow the scope to use all the available space in the window.•Select CH

Seite 28 - Simulink on UNIX Platforms

Viewing Signals3-83•Filter Type = Lowpass•Design Method = FIR (Window) •Filter Order (Specify order) = 22 •Window Specifications (Window) = Hamming•Fr

Seite 29 - Model Definition

3 Working with Signals3-84To build the model, specify the following parameter values in the Sine Wave block:•Amplitude = 1•Frequency = 100•Phase offse

Seite 30

Delay and Latency3-85Delay and LatencyThere are two distinct types of delay that affect Simulink models:•Computational delay•Algorithmic delayThe foll

Seite 31 - parameters. They also both

3 Working with Signals3-86A first step in improving performance is to analyze your model, and eliminate or simplify elements that are adding excessive

Seite 32 - Model Simulation

Delay and Latency3-87input. This delay is directly related to the time elapsed on the Simulink timer during that block’s execution. The algorithmic de

Seite 33 - [1 5] or

3 Working with Signals3-88Use the default settings for the Normalization, Digital Clock, Mux, and To Workspace blocks, and adjust the Signal From Work

Seite 34 - Learning More About Simulink

Delay and Latency3-89The first column of ans is the Simulink time provided by the Digital Clock block. You can see that the squared 2-norm of the firs

Seite 35 - Fixed-step option in the

What Is the DSP Blockset?1-3What Is the DSP Blockset?The DSP Blockset is a collection of block libraries for use with the Simulink dynamic system simu

Seite 36 - Customizing dspstartup.m

3 Working with Signals3-90Use the default settings for the Digital Clock, Mux, and To Workspace blocks, and adjust the Signal From Workspace block’s p

Seite 37 - Performance-Related Settings

Delay and Latency3-91Excess Algorithmic Delay (Tasking Latency)Under certain conditions, Simulink may force a block to delay inputs longer than is str

Seite 38 - Parameters

3 Working with Signals3-92block is called multirate when at least one input or output port has a different frame rate than the others. Many blocks are

Seite 39 - Miscellaneous Settings

Delay and Latency3-93Example: Nonzero Tasking Latency. Most multirate blocks experience tasking latency only in Simulink’s multitasking mode. As an ex

Seite 40

3 Working with Signals3-94•Set the Output signal parameter of the Frame Status Conversion block to Sample-based.Notice that the current value of the S

Seite 41

Delay and Latency3-95The first column of yout is the Simulink time provided by the Digital Clock block. The four values to the right of each time are

Seite 42

3 Working with Signals3-96The “Latency and Initial Conditions” section of the reference page for Upsample indicates that the block has zero latency fo

Seite 43 - Signal Concepts

4 DSP OperationsOverview . . . . . . . . . . . . . . . . . . . . . 4-2Filters . . . . . . .

Seite 44

4 DSP Operations4-2OverviewThis chapter discusses some basic DSP operations, and how they can be implemented using the DSP Blockset. The following top

Seite 45

Filters4-3Filters Filtering is one of the most important operations in signal processing, and is supported in the DSP Blockset with three libraries of

Seite 46

1 Introduction1-4into all of its blocks. A completely frame-based model can run several times faster than the same model processing sample-by-sample;

Seite 47

4 DSP Operations4-4Filter DesignsFilter Designs library blocks apply specified filters to an input signal and output the result. Depending on the bloc

Seite 48

Filters4-5For details about a particular block, consult its reference page. Also see the rest of this section, which discuss the following topics in d

Seite 49 - Source Blocks

4 DSP Operations4-6The FDATool GUI Opened from the Digital Filter Design BlockDesigning Filters with Various Filter StructuresAny realizable filter ca

Seite 50 - Error: Continuous sample

Filters4-7where y(k) and u(k) are, respectively, the output and input at the current time step, y(k-1) and u(k-1) are the output and input at the prev

Seite 51 - Multichannel Signals

4 DSP Operations4-8you specify a filter order. The other available parameters depend on the filter type and band configuration, as shown in the table

Seite 52

Filters4-9Note The Analog Filter Design block does not work with Simulink’s discrete solver, which is enabled when the discrete option is selected in

Seite 53

4 DSP Operations4-10TransformsThe Transforms library provides blocks for a number of transforms that are of particular importance in DSP applications:

Seite 54

Transforms4-11To build the model, make the following parameter settings:•In the Sine Wave block, set:-Amplitude = 1- Frequency = [15 40]- Phase offset

Seite 55 - Accelerating Simulations

4 DSP Operations4-12Note that the three-block sequence of FFT, Complex to Magnitude-Angle, and Vector Scope could be replaced by a single Spectrum Sco

Seite 56

Transforms4-13- Input is in bit-reversed order = -Input is conjugate symmetric = •In the Sum block, set List of signs = |++.•In the Gain block, set Ga

Seite 57 - Sample Rates and Frame Rates

What Is the DSP Blockset?1-5The multirate filtering algorithms employ polyphase implementations for efficient simulation and real-time code execution.

Seite 58 - 0, as explained in

4 DSP Operations4-14

Seite 59 - Red = fastest sample rate

Power Spectrum Estimation4-15Power Spectrum EstimationThe Power Spectrum Estimation library provides a number of blocks for spectral analysis. Many of

Seite 60

4 DSP Operations4-16Linear AlgebraThe Matrices and Linear Algebra library provides three large sublibraries containing blocks for linear algebra:•Line

Seite 61 - Direct Rate Conversion

Linear Algebra4-17Example: LU SolverIn the model below, the LU Solver block solves the equation Ax = b, where and finds x to be the vector [-2 0 1]&ap

Seite 62

4 DSP Operations4-18•QR Factorization•Singular Value DecompositionSome of the blocks offer particular strengths for certain classes of problems. For e

Seite 63 - Sample time and Samples per

Linear Algebra4-19You can check that LU = Ap with the Matrix Multiply block, as shown in the model below.Inverting MatricesThe Matrix Inverses library

Seite 64

4 DSP Operations4-20To build the model, in the DSP Constant block, set the Constant value parameter to [1 -2 3;4 0 6;2 -1 3]. As shown above, the comp

Seite 65

Statistics4-21StatisticsThe Statistics library provides fundamental statistical operations such as minimum, maximum, mean, variance, and standard devi

Seite 66

4 DSP Operations4-22selected, for example) the Maximum block finds the maximum value in each column of the current input, and returns this result at t

Seite 67

Statistics4-23•In the Buffer block, set:-Output buffer size (per channel) = 128- Buffer overlap = 127Running OperationsA running operation is one that

Seite 68

1 Introduction1-6What Is in the DSP Blockset?The DSP Blockset contains a collection of blocks organized in a set of nested libraries. The best way to

Seite 69

4 DSP Operations4-24DSP Blockset Demos OverviewYou can access the DSP Blockset demos by typingdemosat the MATLAB command line. In the Demos window tha

Seite 70

DSP Blockset Demos Overview4-25•LPC analysis and synthesis: Uses the Levinson solver and Time-Varying Lattice Filter for low-bandwidth transmission of

Seite 71 - Changing Frame Status

4 DSP Operations4-26Queues Demo•Demo uses a Queue block with a system of selection switches to illustrate pushing and popping elements from a queue.Si

Seite 72

5 DSP Block ReferenceFeatures of the Online DSP Block Reference . . . . . 5-2Main Sections of a Block Reference Page . . . . .

Seite 73 - Creating Signals

5 DSP Block Reference5-2Features of the Online DSP Block ReferenceThe online DSP Blockset block reference section contains complete information on eve

Seite 74

Features of the Online DSP Block Reference5-3About Tunable ParametersTunable parameters are block parameters whose settings you can change or tune dur

Seite 75

5 DSP Block Reference5-4Ways to Access Online DSP Block Reference PagesThere are several ways to access the reference pages:•Click Help in a block dia

Seite 76

Features of the Online DSP Block Reference5-5•Click on indicated links to bring up example models.•Run the models as you would run any other model.Ope

Seite 77 - •Sample time

5 DSP Block Reference5-6Blocks Supporting Code GenerationYou can generate C code from models containing DSP Blockset blocks by using the Real-Time Wor

Seite 78

Blocks Supporting Code Generation5-7Display DownsampleDSP Constant Dyadic Analysis Filter BankDyadic Synthesis Filter Bank Edge DetectorEvent-Count Co

Seite 79

What Is in the DSP Blockset?1-7Double-click on a demo in the list to open that model, and select Start from the model window’s Simulation menu to run

Seite 80

5 DSP Block Reference5-8Real Cepstrum RepeatRLS Adaptive Filter RMSSample and Hold SelectorShort-Time FFT Signal From WorkspaceSignal To Workspace Sin

Seite 81

Block Library List5-9Block Library ListThis section contains the following two subsections:•“Block Library Hierarchy” – a structured list of the DSP B

Seite 82 - Constructing Signals

5 DSP Block Reference5-10- Signal Management: Buffers- Signal Management: Indexing- Signal Management: Signal Attributes- Signal Management: Switches

Seite 83

Block Library List5-11DSP Constant Signal From WorkspaceDiscrete Impulse Sine WaveFrom Wave Device Triggered Signal From WorkspaceFrom Wave File Wind

Seite 84

5 DSP Block Reference5-12Filtering: Adaptive FiltersKalman Adaptive Filter RLS Adaptive FilterLMS Adaptive FilterFiltering: Filter DesignsAnalog Filte

Seite 85 - Number of inputs = 2

Block Library List5-13Math Functions: Matrices and Linear AlgebraLinear System SolversAutocorrelation LPC Levinson-DurbinCholesky Solver LU SolverForw

Seite 86

5 DSP Block Reference5-14Math Functions: Matrices and Linear AlgebraMatrix OperationsConstant Diagonal Matrix Matrix ScalingCreate Diagonal Matrix Mat

Seite 87 - Signal = 5*ones(10,1)

Block Library List5-15QuantizersQuantizer (Simulink block) Uniform EncoderUniform Decoder Signal Management: BuffersBuffer StackDelay Line Triggered D

Seite 88

5 DSP Block Reference5-16Signal Management: Switches and CountersCounter Multiphase ClockEdge Detector N-Sample EnableEvent-Count Comparator N-Sample

Seite 89

Block Library List5-17TransformsAnalytic Signal IDCTComplex Cepstrum IFFTDCT Real CepstrumFFT

Seite 90

1 Introduction1-8Getting Started with the DSP BlocksetTo get started with the DSP Blockset, open the Simulink Library Browser by pressing the button

Seite 91

Analog Filter Design5-235Analog Filter DesignPurpose Design and implement an analog filter.Library Filtering / Filter DesignsDescription The Analog Fi

Seite 92

Analog Filter Design5-24attenuation Rs. Frequency values are in rad/s, and ripple and attenuation values are in dB.The analog filters are designed usi

Seite 93 - Initial

Analog Filter Design5-25Filter typeThe type of filter to design: Lowpass, Highpass, Bandpass, or Bandstop. Tunable.Filter orderThe order of the filter

Seite 94

Analog Filter Design5-26References Antoniou, A. Digital Filters: Analysis, Design, and Applications. 2nd ed. New York, NY: McGraw-Hill, 1993.Supported

Seite 95 - Select = Rows

Analytic Signal5-275Analytic SignalPurpose Compute the analytic signal of a discrete-time input.Library TransformsDescription The Analytic Signal bloc

Seite 96 - - Starting column index = 1

Analytic Signal5-28Filter orderThe length of the FIR filter used to compute the Hilbert transform.Supported Data TypesDouble-precision floating point

Seite 97

Autocorrelation5-295AutocorrelationPurpose Compute the autocorrelation of a vector input.Library StatisticsDescription The Autocorrelation block compu

Seite 98

Autocorrelation5-30Dialog BoxAll positive lagsWhen selected, computes the autocorrelation over all M+1 positive lags.Maximum positive lagThe maximum p

Seite 99

Autocorrelation LPC5-315Autocorrelation LPCPurpose Determine the coefficients of an Nth-order forward linear predictor.Library Estimation / Linear Pre

Seite 100 - 3 Working with Signals

Autocorrelation LPC5-32Algorithm The Autocorrelation LPC block computes the least-squares solution towhere indicates the 2-norm andSolving the least

Seite 101 - Deconstructing Signals

Getting Started with the DSP Blockset1-9•Help browser – Select Full Product Family Help from the Help menu, or type doc or helpdesk at the command lin

Seite 102 - Importing Signals

Autocorrelation LPC5-33Note that the solution to the LPC problem is very closely related to the Yule-Walker AR method of spectral estimation. In that

Seite 103

Autocorrelation LPC5-34Proakis, J. and D. Manolakis. Digital Signal Processing. 3rd ed. Englewood Cliffs, NJ: Prentice-Hall, 1996.Supported Data Types

Seite 104

Backward Substitution5-355Backward SubstitutionPurpose Solve the equation UX=B for X when U is an upper triangular matrix.Library Math Functions / Mat

Seite 105

Backward Substitution5-36See “Solving Linear Systems” on page 4-16 for related information.

Seite 106

Biquadratic Filter5-375Biquadratic FilterPurpose Apply a cascade of biquadratic (second-order section) filters to the input.Library Filtering / Filter

Seite 107

Biquadratic Filter5-38The SOS matrix parameter specifies the filter coefficients as a second-order section matrix of the type produced by the ss2sos a

Seite 108

Biquadratic Filter5-39Each pair of elements in a column specifies v1k and v2k for second-order section k of the corresponding channel. Dialog BoxSOS m

Seite 109

Biquadratic Filter5-40See AlsoSee “Designing Filters with Various Filter Structures” on page 4-6 for related information.Direct-Form II Transpose Filt

Seite 110

Buffer5-415BufferPurpose Buffer the input sequence to a smaller or larger frame size.Library Signal Management / BuffersDescription The Buffer block r

Seite 111 - Importing WAV Files

Buffer5-42Mo=1, the input is simply passed through to the output, and retains the same dimension. Sample-based full-dimension matrix inputs are not ac

Seite 112 - Exporting Signals

How to Contact The MathWorks:www.mathworks.com Webcomp.soft-sys.matlab [email protected] Technical [email protected] Product

Seite 113

1 Introduction1-10Technical ConventionsThe following sections provides a brief overview of the technical conventions used in this guide, and provides

Seite 114

Buffer5-43You can use the rebuffer_delay function with a frame size of 1 to precisely compute the delay (in samples) for sample-based signals. For the

Seite 115

Buffer5-44Note that the sequence is delayed by eight samples, which is the latency of the block in Simulink’s multitasking mode for the parameter sett

Seite 116 - Using the To Workspace Block

Buffer5-45Nonzero LatencySample-Based Operation. For all cases of sample-based single-tasking operation other than those listed above, the Buffer bloc

Seite 117

Buffer5-46See “Excess Algorithmic Delay (Tasking Latency)” on page 3-91 and “The Simulation Parameters Dialog Box” in the Simulink documentation for m

Seite 118

Buffer5-47See AlsoSee “Buffering Sample-Based and Frame-Based Signals” on page 3-47 for related information.Delay Line DSP BlocksetUnbuffer DSP Blocks

Seite 119 - Stereo check box. See the

Burg AR Estimator5-485Burg AR EstimatorPurpose Compute an estimate of AR model parameters using the Burg method.Library Estimation / Parametric Estima

Seite 120 - Viewing Signals

Burg AR Estimator5-49Dialog BoxOutput(s)The realization to output, model coefficients, reflection coefficients, or both.Inherit estimation order from

Seite 121

Burg Method5-505Burg MethodPurpose Compute a parametric spectral estimate using the Burg method.Library Estimation / Power Spectrum EstimationDescript

Seite 122

Burg Method5-51Burg Covariance Modified Covariance Yule-WalkerCharacteristicsDoes not apply window to dataDoes not apply window to dataDoes not apply

Seite 123 - Example: Displaying Matrices

Burg Method5-52Examples The dspsacomp demo compares the Burg method with several other spectral estimation methods.Dialog BoxInherit estimation order

Seite 124 - •Ending column offset = 1

Getting Started with the DSP Blockset1-11•One-dimensional array, also called a 1-D vector•1-by-N matrix, also called a row vector•M-by-1 matrix, also

Seite 125 - Reducing Computational Delay

Burg Method5-53Supported Data TypesSee AlsoSee “Power Spectrum Estimation” on page 4-15 for related information.Double-precision floating pointBurg AR

Seite 126

Check Signal Attributes5-545Check Signal AttributesPurpose Generate an error when the input signal does or does not match selected attributes exactly.

Seite 127 - Zero Algorithmic Delay

Check Signal Attributes5-55•DimensionalityChecks the dimension of signal for compliance (Is...) or noncompliance (Is not...) with the attributes in th

Seite 128

Check Signal Attributes5-56Dimensions Is... Is not...1-D 1-D vector,1-D scalarM-by-N matrix,1-by-N matrix (row vector),M-by-1 matrix (column vector),1

Seite 129 - Basic Algorithmic Delay

Check Signal Attributes5-57Note that when Signal dimensions is selected from the model window Format menu, Simulink displays the size of a 1-D vector

Seite 130

Check Signal Attributes5-58column below can be individually selected from the subordinate Specific data type menu. Note that data type information can

Seite 131

Check Signal Attributes5-59Dialog BoxError if inputSpecifies whether the block generates an error when the input possesses none of the required attrib

Seite 132 - Predicting Tasking Latency

Check Signal Attributes5-60Data typeSpecifies whether the input should be checked for compliance (Is...) or noncompliance (Is not...) with the attribu

Seite 133

Chirp5-615ChirpPurpose Generate a swept-frequency cosine (chirp) signal.Library DSP SourcesDescription The Chirp block outputs a swept-frequency cosin

Seite 134

Chirp5-62Setting the Output Frame StatusUse Samples per frame parameter to set the block’s output frame status, as summarized in the table. The Sample

Seite 135 - Mode = SingleTasking

1 Introduction1-12Typographical ConventionsThis manual uses some or all of these conventions.Item Convention to Use ExampleExample code Monospace font

Seite 136

Chirp5-63The following diagram illustrates the possible shapes of the frequency sweep that you can obtain by setting the Frequency sweep and Sweep mod

Seite 137 - DSP Operations

Chirp5-64on page 5-62). The following table describes the characteristics of unidirectional and bidirectional sweeps. The following diagram illustrate

Seite 138 - Overview

Chirp5-65•Target frequency (Hertz), fi(tg)•Target time (seconds), tgThe following table summarizes the sweep values at specific times for all Frequenc

Seite 139 - Filters

Chirp5-66examine the following table and the diagram in “Shaping the Frequency Sweep by Setting Frequency Sweep and Sweep Mode” on page 5-62.Table 5-2

Seite 140

Chirp5-67the chirp output when the Frequency Sweep parameter is set to Linear, Quadratic, or Logarithmic. For instance, if you want a chirp signal wit

Seite 141

Chirp5-68Swept Cosine Instantaneous Output Frequency at the Target Time is not the Target Frequency.The swept cosine sweep value at the Target time is

Seite 142

Chirp5-69Open the Example 1 model by clicking here in the MATLAB Help Browser. You can also rebuild the model yourself; see the following list for mod

Seite 143

Chirp5-70specgram(dsp_examples_yout,[0:.01:40],400,hamming(128),110)Example 2: Bidirectional Sweeps.Change the Sweep mode parameter in the Example 1 m

Seite 144

Chirp5-71Open the Example 2 model by clicking here in the MATLAB Help Browser. Run your model to see the time domain output, and then type the followi

Seite 145 - Multirate Filters

Chirp5-72Open the Example 3 model by clicking here in the MATLAB Help Browser. Run your model to see the time domain output, and then type the followi

Seite 146 - Example: Using the FFT Block

R12 Related Products1-13R12 Related ProductsThe MathWorks provides several products that are especially relevant to the kinds of tasks you can perform

Seite 147

Chirp5-73Open the Example 4 model by clicking here in the MATLAB Help Browser. Run your model to see the time domain output, and then type the followi

Seite 148 - Example: Using the IFFT Block

Chirp5-74Open the Example 5 model by clicking here in the MATLAB Help Browser.Run your model to see the time domain output, and then type the followin

Seite 149

Chirp5-75Dialog BoxFrequency sweepThe type of output instantaneous frequency sweep, fi(t): Linear, Logarithmic, Quadratic, or Swept cosine. Tunable.Sw

Seite 150

Chirp5-76Target frequency (Hz)For Linear, Quadratic, and Logarithmic sweeps, the instantaneous frequency, fi(tg), of the output at the Target time, tg

Seite 151 - Power Spectrum Estimation

Chirp5-77See “Creating Signals Using Signal Generator Blocks” on page 3-36 for related information.

Seite 152

Cholesky Factorization5-785Cholesky FactorizationPurpose Factor a square Hermitian positive definite matrix into triangular components.Library Math Fu

Seite 153 - Example: LU Solver

Cholesky Factorization5-79•Warning – Display a warning message in the MATLAB command window, and continue the simulation. The output is not a valid fa

Seite 154

Cholesky Inverse5-805Cholesky InversePurpose Compute the inverse of a Hermitian positive definite matrix using Cholesky factorization.Library Math Fun

Seite 155 - Example: LU Inverse

Cholesky Inverse5-81References Golub, G. H., and C. F. Van Loan. Matrix Computations. 3rd ed. Baltimore, MD: Johns Hopkins University Press, 1996.Supp

Seite 156

Cholesky Solver5-825Cholesky SolverPurpose Solve the equation SX=B for X when S is a square Hermitian positive definite matrix.Library Math Functions

Seite 157 - Statistics

1 Introduction1-14Motorola DSP Developer’s KitDeveloper's kit for co-simulating and verifying Motorola 56300 and 56600 fixed-point DSP code. Comb

Seite 158 - Example: Sliding Windows

Cholesky Solver5-83Dialog BoxNon-positive definite inputResponse to non-positive definite matrix inputs. Tunable.Supported Data TypesSee AlsoSee “Solv

Seite 159 - Running Operations

Complex Cepstrum5-845Complex CepstrumPurpose Compute the complex cepstrum of an input. Library TransformsDescription The Complex Cepstrum block comput

Seite 160 - DSP Blockset Demos Overview

Complex Cepstrum5-85Inherit FFT length from input port dimensionsWhen selected, matches the output frame size to the input frame size.FFT lengthThe nu

Seite 161 - Filtering Demos

Complex Exponential5-865Complex ExponentialPurpose Compute the complex exponential function.Library Math Functions / Math OperationsDescription The Co

Seite 162

Constant Diagonal Matrix5-875Constant Diagonal MatrixPurpose Generate a square, diagonal matrix.Library DSP Sources,Math Functions / Matrices and Line

Seite 163 - DSP Block Reference

Constant Diagonal Matrix5-88Supported Data Types(See AlsoSee “Creating Signals Using Constant Blocks” on page 3-33 for related information.(MATLAB com

Seite 164 - 5 DSP Block Reference

Constant Ramp5-895Constant RampPurpose Generate a ramp signal with length based on input dimensions.Library DSP SourcesDescription The Constant Ramp b

Seite 165 - About Supported Data Types

Constant Ramp5-90See AlsoSee “Creating Signals Using Constant Blocks” on page 3-33 for related information.Create Diagonal Matrix DSP BlocksetIdentity

Seite 166

Contiguous Copy5-915Contiguous CopyPurpose Create a discontiguous input in a contiguous block of memory (for RTW code generation from blocks linked to

Seite 167

Contiguous Copy5-92Dialog BoxSupported Data Typesu1u2u3u4u5u6u7u8m1m2m3m4m5m6m7m8m6m3m7Memory addressesMemory contentsVector of pointers to new contig

Seite 168

2 Simulink and the DSP BlocksetOverview . . . . . . . . . . . . . . . . . . . . . 2-2The Simulink Enviro

Seite 169

Convert 1-D to 2-D5-935Convert 1-D to 2-DPurpose Reshape a 1-D or 2-D input to a 2-D matrix with the specified dimensions.Library Signal Management /

Seite 170

Convert 1-D to 2-D5-94Number of output rowsThe number of rows, Mo, in the output matrix. Tunable.Number of output columnsThe number of rows, No, in th

Seite 171 - Block Library List

Convert 2-D to 1-D5-955Convert 2-D to 1-DPurpose Convert a 2-D matrix input to a 1-D vector.Library Signal Management / Signal AttributesDescription T

Seite 172

Convert Complex DSP To Simulink5-965Convert Complex DSP To SimulinkPurpose Convert complex data from the DSP Blockset Version 2.2 format to the Simuli

Seite 173

Convert Complex DSP To Simulink5-97Dialog BoxSupported Data TypesSee AlsoExisting (Version 2.2) complex-data Subsystem B upgraded to Version 3.0 compl

Seite 174

Convert Complex Simulink To DSP5-985Convert Complex Simulink To DSPPurpose Convert complex data from the Simulink Version 3 format to the DSP Blockset

Seite 175

Convert Complex Simulink To DSP5-99Dialog BoxSupported Data TypesSee AlsoExisting (Version 2.2) complex-data Subsystem B upgraded to Version 3.0 compl

Seite 176

Convolution5-1005ConvolutionPurpose Compute the convolution of two inputs.Library Signal OperationsDescription The Convolution block convolves corresp

Seite 177

Convolution5-101The dimensions of the sample-based output vector are determined by the dimensions of the input vectors:•When both inputs are row vecto

Seite 178

Correlation5-1025CorrelationPurpose Compute the correlation along the columns of two inputs.Library StatisticsDescription The Correlation block comput

Seite 179 - DCT Real Cepstrum

2 Simulink and the DSP Blockset2-2OverviewThis chapter will help you get started building DSP models with Simulink and the DSP Blockset. It contains t

Seite 180 - Analog Filter Design

Correlation5-103The dimensions of the sample-based output vector are determined by the dimensions of the input vectors:•When both inputs are column ve

Seite 181

Counter5-1045CounterPurpose Count up or down through a specified range of numbers.Library Signal Management / Switches and CountersDescription The Cou

Seite 182

Counter5-105•16 bits specifies a counter with a range of 0 to 65535.•32 bits specifies a counter with a range of 0 to 232-1.•User defined enables the

Seite 183 - See Also

Counter5-106parameter setting. When the counter value does equal the Hit value setting, the block generates a value of 1 at the Hit port. The output i

Seite 184 - Analytic Signal

Counter5-107To run the model, first select Simulation Parameters from the Simulation menu, and set the Stop time to 30. Then adjust the block paramete

Seite 185

Counter5-108You can see that the seventh input samples to both the Clk and Rst ports of the Counter block represent trigger events (rising edges), so

Seite 186 - Autocorrelation

Counter5-109Dialog BoxCount directionThe counter direction, Up or Down. Tunable, except in Simulink’s external mode.Count eventThe type of event that

Seite 187 - Dialog Box

Counter5-110Initial countThe counter’s initial value at the start of the simulation and after reset. Tunable, except in Simulink’s external mode.Outpu

Seite 188 - Autocorrelation LPC

Covariance AR Estimator5-1115Covariance AR EstimatorPurpose Compute an estimate of AR model parameters using the covariance method.Library Estimation

Seite 189

Covariance AR Estimator5-112References Kay, S. M. Modern Spectral Estimation: Theory and Application. Englewood Cliffs, NJ: Prentice-Hall, 1988.Marple

Seite 190

The Simulink Environment2-3The Simulink EnvironmentSimulink is an environment for simulating dynamic systems. It provides a modeling and simulation “f

Seite 191

Covariance Method5-1135Covariance MethodPurpose Compute a parametric spectral estimate using the covariance method.Library Estimation / Power Spectrum

Seite 192 - Backward Substitution

Covariance Method5-114Inherit FFT length from input dimensionsWhen selected, uses the input frame size as the number of data points, Nfft, on which to

Seite 193

Create Diagonal Matrix5-1155Create Diagonal MatrixPurpose Create a square diagonal matrix from diagonal elements.Library Math Functions / Matrices and

Seite 194 - Biquadratic Filter

Cumulative Sum5-1165Cumulative SumPurpose Compute the cumulative sum of row or column elements.Library Math Functions / Math OperationsDescription The

Seite 195

Cumulative Sum5-117The frame status of the output is the same as the input. For both sample-based and frame-based inputs, the first column of each suc

Seite 196

dB Conversion5-1185dB ConversionPurpose Convert magnitude data to decibels (dB or dBm).Library Math Functions / Math OperationsDescription The dB Conv

Seite 197

dB Conversion5-119The dBm conversion is equivalent to performing the dB operation after converting the (abs(u)^2/R) result to milliwatts.Dialog BoxCon

Seite 198 - Sample-Based Operation

dB Gain5-1205dB GainPurpose Apply a gain specified in decibels.Library Math Functions / Math OperationsDescription The dB Gain block multiplies the in

Seite 199 - Frame-based output

dB Gain5-121Supported Data TypesSee AlsoSingle-precision floating pointDouble-precision floating point dB Conversion DSP BlocksetMath Function Simulin

Seite 200 - Frame-Based Operation

DCT5-1225DCTPurpose Compute the DCT of the input.Library TransformsDescription The DCT block computes the unitary discrete cosine transform (DCT) of e

Seite 201 - Latency Zero Latency

2 Simulink and the DSP Blockset2-4The first item in the list is the Simulink blockset itself, which is already expanded to show the available Simulink

Seite 202 - Nonzero Latency

DCT5-123Dialog BoxSupported Data TypesSee AlsoDouble-precision floating point Complex Cepstrum DSP BlocksetFFT DSP BlocksetIDCT DSP BlocksetReal Cepst

Seite 203

Delay Line5-1245Delay LinePurpose Rebuffer a sequence of inputs with a one-sample shift.Library Signal Management / BuffersDescription The Delay Line

Seite 204

Delay Line5-125In the model below, the block operates on a sample-based input with a Delay line size of 3.The input vectors in the example above do no

Seite 205 - Burg AR Estimator

Delay Line5-126When Mo=Mi, the output data is identical to the input data, but is delayed by the latency of the block. Due to the block’s latency, the

Seite 206

Delay Line5-127Dialog BoxDelay line sizeThe number of rows in output matrix, Mo.Initial conditionsThe value of the block’s initial output, a scalar, v

Seite 207 - Burg Method

Detrend5-1285DetrendPurpose Remove a linear trend from a vector.Library StatisticsDescription The Detrend block removes a linear trend from the length

Seite 208

Difference5-1295DifferencePurpose Compute the element-to-element difference along rows or columns.Library Math Functions / Math OperationsDescription

Seite 209

Difference5-130The output is an M-by-(N-1) matrix whose ith row has elementsThe frame status of the output is the same as the input. For convenience,

Seite 210

Digital Filter Design5-1315Digital Filter DesignPurpose Design and implement a variety of digital FIR and IIR filters.Library Filtering / Filter Desig

Seite 211 - Check Signal Attributes

Digital Filter Design5-132Dialog Box Double-click the block to open FDATool. Supported Data TypesDouble-precision floating point

Seite 212

The Simulink Environment2-5The following tutorial makes use of the Simulink Library Browser, available only on PC platforms. If you are working on a U

Seite 213

Digital Filter Design5-133See AlsoAnalog Filter Design DSP BlocksetWindow Function DSP Blocksetfdatool Signal Processing Toolboxfvtool Signal Processi

Seite 214

Direct-Form II Transpose Filter5-1345Direct-Form II Transpose Filter Purpose Apply an IIR filter to the input.Library Filtering / Filter DesignsDescri

Seite 215

Direct-Form II Transpose Filter5-135Initial ConditionsIn its default form, the filter initializes the internal filter states to zero, which is equival

Seite 216

Direct-Form II Transpose Filter5-136Dialog BoxNumeratorThe filter numerator vector. Tunable; the numerator coefficients can be adjusted while the simu

Seite 217

Direct-Form II Transpose Filter5-137See AlsoSee “Designing Filters with Various Filter Structures” on page 4-6 for related information.Biquadratic Fil

Seite 218 - Library DSP Sources

Discrete Impulse5-1385Discrete ImpulsePurpose Generate a discrete impulse.Library DSP SourcesDescription The Discrete Impulse block generates an impul

Seite 219

Discrete Impulse5-139Run the model and look at the output, yout. The first few samples of each channel are shown below.yout(1:10,:)ans = 1 0

Seite 220 - These diagrams apply

Discrete Impulse5-140Sample timeThe sample period, Ts, of the output signal. The output frame period is M∗Ts. Tunable.Samples per frameThe number of s

Seite 221 - Sweep time, 2

Downsample5-1415DownsamplePurpose Resample an input at a lower rate by deleting samples.Library Signal OperationsDescription The Downsample block resa

Seite 222 - Block Computation Methods

Downsample5-142•Enforce single rateWhen Enforce single rate is selected, the block forces the output sample rate to match the input sample rate (Tso=T

Seite 223

iContents1IntroductionWelcome to the DSP Blockset . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2What Is the DSP Blockset? . . . . . . . . .

Seite 224 - Quadratic, or Logarithmic

2 Simulink and the DSP Blockset2-61 Type dspstartup at the MATLAB command line to configure Simulink for DSP simulation (optional). One of the things

Seite 225

Downsample5-143•Maintain input frame rateThe block generates the output at the slower (downsampled) rate by using a proportionally smaller frame size

Seite 226 - 1 second), the Target

Downsample5-144Nonzero Latency. The Downsample block is multirate for most settings other than those in the above table. The amount of latency for mul

Seite 227

Downsample5-145Adjust the block parameters as follows:•Configure the Signal From Workspace block to generate a two-channel signal with frame size of 4

Seite 228

Downsample5-146panel of the Simulation Parameters dialog box, and select MultiTasking from the Mode parameter. Additionally, set the Stop time to 30.R

Seite 229 - Sweep time (1.5 seconds)

Downsample5-147Downsample factorThe integer factor, K, by which to decrease the input sample rate. Sample offsetThe sample offset, D, which must be an

Seite 230 - Target frequency parameter

DSP Constant5-1485DSP ConstantPurpose Generate a discrete-time or continuous-time constant signal.Library DSP SourcesDescription The DSP Constant bloc

Seite 231 - AMPLITUDE

DSP Constant5-149Dialog BoxConstant valueThe constant to generate. Tunable; values entered here can be tuned, but their dimensions must remain fixed.I

Seite 232

DSP Constant5-150Supported Data TypesSee AlsoSee “Creating Signals Using Constant Blocks” on page 3-33 for related information.(MATLAB commands for ca

Seite 233

Dyadic Analysis Filter Bank5-1515Dyadic Analysis Filter BankPurpose Decompose a signal into components of equal or logarithmically decreasing frequenc

Seite 234

Dyadic Analysis Filter Bank5-152functions in the Wavelet Toolbox (see the Wavelet Toolbox documentation for more information).Tree StructureThe Tree s

Seite 235 - Cholesky Factorization

The Simulink Environment2-76 Add a Scope block to the model.a Click Sinks (in the Simulink tree) to view the blocks in the Simulink Sinks library.b Dr

Seite 236

Dyadic Analysis Filter Bank5-153The bottom two outputs (ynand yn+1) share the same sample period, bandwidth, and frame size because they originate at

Seite 237 - Cholesky Inverse

Dyadic Analysis Filter Bank5-154In frame-based mode, the sample period of output yk is reflected by its frame size, Mo,k, rather than by its frame rat

Seite 238

Dyadic Analysis Filter Bank5-155ApplicationsWavelets. The primary application for dyadic analysis filter banks is coding for data compression using wa

Seite 239 - Cholesky Solver

Dyadic Analysis Filter Bank5-156LatencyZero Latency. The Dyadic Analysis Filter Bank block has no tasking latency for frame-based operation, which is

Seite 240

Dyadic Analysis Filter Bank5-157Dialog BoxLowpass FIR filter coefficientsA vector of filter coefficients (descending powers of z) to be shared by all

Seite 241 - Complex Cepstrum

Dyadic Analysis Filter Bank5-158Supported Data TypesSee AlsoSee the following sections for related information:•“Converting Sample Rates and Frame Rat

Seite 242

Dyadic Synthesis Filter Bank5-1595Dyadic Synthesis Filter BankPurpose Reconstruct a signal from its multirate bandlimited components.Library Filtering

Seite 243 - Complex Exponential

Dyadic Synthesis Filter Bank5-160highpass and lowpass direct-form II transpose filter in the filter bank. The values of these coefficients are typical

Seite 244 - Constant Diagonal Matrix

Dyadic Synthesis Filter Bank5-161Symmetric Tree. The symmetric structure shown below (Tree structure set to Symmetric) has 2ninputs, where n is the Nu

Seite 245

Dyadic Synthesis Filter Bank5-162The figure below shows the input and output sample periods for the four 64-channel sample-based inputs to a three-lev

Seite 246 - parameter

2 Simulink and the DSP Blockset2-8Close the dialog box by clicking on the OK button or by pressing Enter on the keyboard.b Double-click on the Matrix

Seite 247 - Constant Ramp

Dyadic Synthesis Filter Bank5-163ApplicationsThe primary application for asymmetric dyadic synthesis filter banks is coding for compression using wave

Seite 248 - Contiguous Copy

Dyadic Synthesis Filter Bank5-164asymmetric tree structure generates 2n-2 zero-valued output samples in each channel before propagating the first synt

Seite 249

Dyadic Synthesis Filter Bank5-165Strang, G. and T. Nguyen. Wavelets and Filter Banks. Wellesley, MA: Wellesley-Cambridge Press, 1996.Vaidyanathan, P.

Seite 250 - Convert 1-D to 2-D

Edge Detector5-1665Edge DetectorPurpose Detect a transition of the input from zero to a nonzero value.Library Signal Management / Switches and Counter

Seite 251

Edge Detector5-167Dialog BoxSupported Data TypesSee AlsoInputSimulation timeOutput5– 04– 13– 02– 01– 200102033405000000100000100100001000000First inpu

Seite 252 - Convert 2-D to 1-D

Event-Count Comparator5-1685Event-Count ComparatorPurpose Detect threshold crossing of accumulated nonzero inputs.Library Signal Management / Switches

Seite 253 - ∗ symbol

Event-Count Comparator5-169Dialog BoxEvent thresholdThe value against which to compare the number of nonzero inputs. Tunable.Supported Data TypesSee A

Seite 254

Extract Diagonal5-1705Extract DiagonalPurpose Extract the main diagonal of the input matrix.Library Math Functions / Matrices and Linear Algebra / Mat

Seite 255

Extract Triangular Matrix5-1715Extract Triangular MatrixPurpose Extract the lower or upper triangle from an input matrix.Library Math Functions / Matr

Seite 256

Extract Triangular Matrix5-172Dialog BoxExtractThe component of the matrix to copy to the output, upper triangle or lower triangle. Tunable, except in

Seite 257 - Convolution

The Simulink Environment2-9to produce a scalar output. Thus, the input to the Scope block is the point-by-point sum of the two sinusoids.2 Double-clic

Seite 258

FFT5-1735FFTPurpose Compute the FFT of the input.Library TransformsDescription The FFT block computes the fast Fourier transform (FFT) of each channel

Seite 259 - Correlation

FFT5-174dimension to a power-of-two length. Also, to get valid outputs, your inputs must be in linear order. Valid Block Inputs•Real- or complex-value

Seite 260

FFT5-175Click here in the MATLAB Help Browser to open a Simulink model based on the following diagram. 12 324 636 9481210 20 3022i+– 44i+– 66i+–2– 4–

Seite 261 - 5Counter

FFT5-176Ordering Output Column Entries (Output in bit-reversed order Parameter)Set the Output in bit-reversed order parameter as follows to indicate t

Seite 262

FFT5-177Description of Bit-Reversed Ordering. Two numbers are bit-reversed values of each other when the binary representation of one is the mirror im

Seite 263 - Free-Running Operation

FFT5-178 in Equation 5-2. This parameter has two settings, each with its advantages and disadvantages, as described in the following table.Optimizing

Seite 264

FFT5-179the table of trigonometric values for speed or memory by varying the number of table entries as summarized in the following table.Algorithms U

Seite 265

FFT5-180convolve signals by taking the FFT of time domain data, multiplying frequency-domain data, and inputting the product to an IFFT block. The fol

Seite 266

FFT5-181Dialog BoxTwiddle factor computationComputation method of the term in Equation 5-2. In Table lookup mode, the block computes and stores the s

Seite 267

FFT5-182See AlsoComplex Cepstrum DSP BlocksetDCT DSP BlocksetIFFT DSP BlocksetPad DSP BlocksetZero Pad DSP BlocksetbitrevorderSignal Processing Toolbo

Seite 268 - Covariance AR Estimator

2 Simulink and the DSP Blockset2-10Running a Simulation from an M-File. You can also modify and run a Simulink simulation from within a MATLAB M-file.

Seite 269

Filter Realization Wizard5-1835Filter Realization WizardPurpose Automatically construct filter realizations using Sum, Gain, and Unit Delay blocks.Lib

Seite 270 - Covariance Method

Filter Realization Wizard5-184Fixed-Point OptionsBy default, the filter constructed by the Filter Realization Wizard operates using the Simulink stand

Seite 271

Filter Realization Wizard5-185Example 1: Direct Form IIDesign an fourth-order, quarter-band, lowpass Butterworth filter:1 At the MATLAB command line,

Seite 272 - Create Diagonal Matrix

Filter Realization Wizard5-1866 Double-click the new Butter LPF block to see the Direct-Form II filter realization that the Wizard created.Example 2:

Seite 273 - Cumulative Sum

Filter Realization Wizard5-1873 Type a name for the new filter subsystem in the Block Name field. The example uses Butter SOS.4 Press the Build button

Seite 274

Filter Realization Wizard5-188Numerator field. The two filter sections do not need to have the same order.- Type {a1,a2} in the Denominator text field

Seite 275 - Voltage Inputs

Filter Realization Wizard5-189[k,v] = tf2latc(b,a);Configure the Wizard to use k and v as the coefficients of the lattice design:- Select Lattice (ARM

Seite 276

Filter Realization Wizard5-190Dialog BoxThe parameters displayed in the Architecture panel vary for different selections in the Type menu. Only a port

Seite 277

Filter Realization Wizard5-191Lattice CoeffsThe lattice coefficients for the lattice MA/AR/ARMA structures, specified as a vector or variable name.Lad

Seite 278

Filter Realization Wizard5-192Supported Data TypesSee AlsoSee “Designing Filters with Various Filter Structures” on page 4-6 for related information.F

Seite 279 - Library Transforms

Configuring Simulink for DSP Systems2-11Configuring Simulink for DSP SystemsWhen you create a new DSP model, you may want to adjust certain Simulink s

Seite 280

FIR Decimation5-1935FIR DecimationPurpose Filter and downsample an input signal.Library Filtering / Multirate FiltersDescription The FIR Decimation bl

Seite 281 - Delay Line

FIR Decimation5-194•Maintain input frame sizeThe block generates the output at the slower (decimated) rate by using a proportionally longer frame peri

Seite 282

FIR Decimation5-195LatencyZero Latency. The FIR Decimation block has zero tasking latency for all single-rate operations. The block is single-rate for

Seite 283

FIR Decimation5-196samples K+1, 2K+1, and so on. See the example below for an illustration of this case.See “Excess Algorithmic Delay (Tasking Latency

Seite 284

FIR Decimation5-197The filter coefficient vector generated by fir1(3,0.25) is[0.0386 0.4614 0.4614 0.0386]or, equivalently,•Configure the Probe blocks

Seite 285 - 5Detrend

FIR Decimation5-198Dialog BoxFIR filter coefficientsThe lowpass FIR filter coefficients, in descending powers of z.Decimation factorThe integer factor

Seite 286 - Difference

FIR Decimation5-199•“Multirate Filters” on page 4-9

Seite 287

FIR Interpolation5-2005FIR InterpolationPurpose Upsample and filter an input signal.Library Filtering / Multirate FiltersDescription The FIR Interpola

Seite 288 - Digital Filter Design

FIR Interpolation5-201•Maintain input frame sizeThe block generates the output at the faster (interpolated) rate by using a proportionally shorter fra

Seite 289

FIR Interpolation5-202LatencyZero Latency. The FIR Interpolation block has zero tasking latency for all single-rate operations. The block is single-ra

Seite 290

2 Simulink and the DSP Blockset2-12Using dspstartup.mThere are two ways to use the dspstartup M-file to preconfigure Simulink for DSP simulations: •Ru

Seite 291

FIR Interpolation5-203input matrix) appears in the output as sample Mi+1, followed by L-1 interpolated values, the second filtered input sample, and s

Seite 292 - Initial Conditions

FIR Interpolation5-204The filter coefficient vector generated by fir1(3,0.25) is[0.0386 0.4614 0.4614 0.0386]or, equivalently,•Configure the Probe blo

Seite 293

FIR Interpolation5-205Dialog BoxFIR filter coefficientsThe FIR filter coefficients, in descending powers of z.Interpolation factorThe integer factor,

Seite 294

FIR Interpolation5-206•“Multirate Filters” on page 4-9

Seite 295 - Discrete Impulse

FIR Rate Conversion5-2075FIR Rate ConversionPurpose Upsample, filter, and downsample an input signal.Library Filtering / Multirate FiltersDescription

Seite 296

FIR Rate Conversion5-208Frame-Based OperationThis block accepts only frame-based inputs. An Mi-by-N frame-based matrix input is treated as N independe

Seite 297

FIR Rate Conversion5-209Diagnostics An error is generated if the relation between K and L shown above is not satisfied.(Input port width)/(Output port

Seite 298 - Output Sequence (K=4)

FIR Rate Conversion5-210Supported Data TypesSee AlsoSee the following sections for related information:•“Converting Sample Rates and Frame Rates” on p

Seite 299 - Downsample

Flip5-2115FlipPurpose Flip the input vertically or horizontally.Library Signal Management / IndexingDescription The Flip block vertically or horizonta

Seite 300

Flip5-212Supported Data TypesSee AlsoFixed-pointCustom data typesBoolean8-, 16-, and 32-bit signed integer 8-, 16-, and 32-bit unsigned integerSingle-

Seite 301

Configuring Simulink for DSP Systems2-13Performance-Related SettingsA number of the settings in the dspstartup M-file are chosen to improve the perfor

Seite 302

Forward Substitution5-2135Forward SubstitutionPurpose Solve the equation LX=B for X when L is a lower triangular matrix.Library Math Functions / Matri

Seite 303 - ) appears in the output as

Forward Substitution5-214See “Solving Linear Systems” on page 4-16 for related information.

Seite 304

Frame Status Conversion5-2155Frame Status ConversionPurpose Specify the frame status of the output, sample-based or frame-based.Library Signal Managem

Seite 305 - 5DSP Constant

Frame Status Conversion5-216Supported Data TypesSee AlsoFixed-pointCustom data typesBoolean8-, 16-, and 32-bit signed integer 8-, 16-, and 32-bit unsi

Seite 306

From Wave Device5-2175From Wave DevicePurpose Read audio data from a standard audio device in real-time. (Windows 95/98/NT only)Library DSP SourcesDes

Seite 307

From Wave Device5-218The Sample Width (bits) parameter specifies the number of bits used to represent the signal samples read by the audio device. Two

Seite 308 - Dyadic Analysis Filter Bank

From Wave Device5-219the signal sample rate was 8 kHz, this small buffer could hold approximately 0.005 second of data.)If the simulation throughput r

Seite 309

From Wave Device5-220length, the frame size, and the speed of the simulation. Note that increasing the buffer size may increase model latency.•Increas

Seite 310

From Wave Device5-221Sample rate (Hz)The sample rate of the audio data to be acquired. Select one of the standard Windows rates or the User-defined op

Seite 311

From Wave File5-2225From Wave FilePurpose Read audio data from a Microsoft Wave (.wav) file. (Windows 95/98/NT only)Library DSP SourcesDescription The

Seite 312

2 Simulink and the DSP Blockset2-14duration of the simulation. Simulink additionally precomputes the outputs of all downstream blocks driven exclusive

Seite 313

From Wave File5-223Dialog BoxFile nameThe path and name of the file to read. Paths can be relative or absolute.Samples per output frameThe number of s

Seite 314

Histogram5-2245HistogramPurpose Generate the histogram of an input or sequence of inputs.Library StatisticsDescription The Histogram block computes th

Seite 315

Histogram5-225For convenience, length-M 1-D vector inputs and sample-based length-M row vector inputs are both treated as M-by-1 column vectors.The ou

Seite 316 - Dyadic Synthesis Filter Bank

Histogram5-226•Normalized = •Running histogram = The resulting bin width is 4, as shown below.Dialog BoxMinimum value of inputThe lower boundary, Bm,

Seite 317

Histogram5-227Maximum value of inputThe upper boundary, BM, of the highest-valued bin.Number of binsThe number of bins, n, in the histogram.Normalized

Seite 318

IDCT5-2285IDCTPurpose Compute the IDCT of the input.Library TransformsDescription The IDCT block computes the inverse discrete cosine transform (IDCT)

Seite 319

IDCT5-229Dialog BoxSupported Data TypesSee AlsoDouble-precision floating point DCT DSP BlocksetIFFT DSP BlocksetidctSignal Processing Toolbox

Seite 320

Identity Matrix5-2305Identity MatrixPurpose Generate a matrix with ones on the main diagonal and zeros elsewhere.Library DSP Sources,Math Functions /

Seite 321

Identity Matrix5-231Dialog BoxInherit input port attributes from input portEnables the input port when selected. The output inherits its dimensions an

Seite 322

IFFT5-2325IFFTPurpose Compute the IFFT of the input.Library TransformsDescription The IFFT block computes the inverse fast Fourier transform (IFFT) of

Seite 323 - Edge Detector

Configuring Simulink for DSP Systems2-15of servicing the loop in cases when inline code can be used with only a modest increase in the file size.Howev

Seite 324

IFFT5-233Input and Output CharacteristicsThe following table describes all valid block input types, their corresponding outputs, and the dimension alo

Seite 325 - Event-Count Comparator

IFFT5-234Valid Block Inputs•Must be complex-valued•M must be a power of two•In linear or bit-reversed orderDimension Along Which Block Computes IDFTCo

Seite 326

IFFT5-235Click here in the MATLAB Help Browser to open a Simulink model based on the following diagram. Conjugate Symmetric InputWhen the block input

Seite 327 - Extract Diagonal

IFFT5-236The block output is invalid if you set this parameter when the input is not conjugate symmetric.Inputs in Bit-Reversed OrderWhen the block in

Seite 328 - Extract Triangular Matrix

IFFT5-237Example For an example of how to optimize computations when using both the IFFT block and FFT block in the same model, see the FFT block refe

Seite 329

IFFT5-238values before the simulation starts. In Trigonometric fcn mode, the block computes the sine and cosine values during the simulation. Optimize

Seite 330

Inherit Complexity5-2395Inherit ComplexityPurpose Change the complexity of the input to match that of a reference signal.Library Signal Management / S

Seite 331 - Computes DFT

Inherit Complexity5-240Dialog BoxSupported Data TypesSee AlsoFixed-pointCustom data typesBoolean8-, 16-, and 32-bit signed integer 8-, 16-, and 32-bit

Seite 332

Integer Delay5-2415Integer DelayPurpose Delay an input by an integer number of sample periods.Library Signal OperationsDescription The Integer Delay b

Seite 333

Integer Delay5-242the block generates the following sequence of matrices at the start of the simulation,where is the i,jth element of the kth matrix

Seite 334

ii Contents3Working with SignalsOverview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2Signal Concepts

Seite 335 - Effect on Block Performance

2 Simulink and the DSP Blockset2-16

Seite 336 - Memory N/4 + 1 516 bytes

Integer Delay5-243of the array are output in sequence, one at each sample time of the initial delay. For a 2-by-3 input, and the parameters below,the

Seite 337 - Look under mask. Look under

Integer Delay5-244The Initial conditions parameter specifies the output during the initial delay. Both fixed and time-varying initial conditions can b

Seite 338

Integer Delay5-245- When the all elements of the delay entry are greater than the input frame size,D = d + input frame size - 1 Only the first d entri

Seite 339

Integer Delay5-246the block outputs the following sequence of frames at the start of the simulation.Note that the channels have distinct time varying

Seite 340 - 5Filter Realization Wizard

Integer Delay5-247Dialog BoxDelayThe number of sample periods to delay the input signal.Initial conditionsThe value of the block’s output during the i

Seite 341 - Fixed-Point Options

Integer Delay5-248Supported Data TypesSee AlsoFixed-pointCustom data typesBoolean8-, 16-, and 32-bit signed integer 8-, 16-, and 32-bit unsigned integ

Seite 342 - Example 1: Direct Form II

Kalman Adaptive Filter5-2495Kalman Adaptive FilterPurpose Compute filter estimates for an input using the Kalman adaptive filter algorithm.Library Fil

Seite 343

Kalman Adaptive Filter5-250The variables are as follows. The correlation matrices, QM and QP, are specified in the parameter dialog box by scalar vari

Seite 344 - Example 3: Nth Order Sections

Kalman Adaptive Filter5-251An optional Adapt input port is added when the Adapt input check box is selected in the dialog box. When this port is enabl

Seite 345 - Example 4: ARMA Lattice

Kalman Adaptive Filter5-252Dialog BoxFIR filter lengthThe length of the FIR filter.Measurement noise varianceThe value to appear along the diagonal of

Seite 346

3 Working with SignalsOverview . . . . . . . . . . . . . . . . . . . . . 3-2Signal Concepts . . .

Seite 347

Kalman Adaptive Filter5-253Supported Data TypesSee AlsoSee “Adaptive Filters” on page 4-3 for related information.Double-precision floating point LMS

Seite 348

LDL Factorization5-2545LDL FactorizationPurpose Factor a square Hermitian positive definite matrix into lower, upper, and diagonal components.Library

Seite 349

LDL Factorization5-255The following options are available:•Ignore – Proceed with the computation and do not issue an alert. The output is not a valid

Seite 350 - FIR Decimation

LDL Factorization5-256Supported Data TypesSee AlsoSee “Factoring Matrices” on page 4-17 for related information.Double-precision floating point Choles

Seite 351

LDL Inverse5-2575LDL InversePurpose Compute the inverse of a Hermitian positive definite matrix using LDL factorization.Library Math Functions / Matri

Seite 352

LDL Inverse5-258Non-positive definite inputResponse to non-positive definite matrix inputs. Tunable.References Golub, G. H., and C. F. Van Loan. Matri

Seite 353 - Examples Example 1

LDL Solver5-2595LDL SolverPurpose Solve the equation SX=B for X when S is a square Hermitian positive definite matrix.Library Math Functions / Matrice

Seite 354

LDL Solver5-2601 Substitute2 Substitute3 Solve one diagonal and two triangular systems.Dialog BoxNon-positive definite inputResponse to non-positive d

Seite 355

Least Squares Polynomial Fit5-2615Least Squares Polynomial FitPurpose Compute the coefficients of the polynomial that best fits the input data in a le

Seite 356

Least Squares Polynomial Fit5-262to generate four values of dependent variable y from four values of independent variable u, received at the top port.

Seite 357 - FIR Interpolation

3 Working with Signals3-2OverviewThe first part of this chapter will help you understand how signals are represented in Simulink. It covers a number o

Seite 358

Least Squares Polynomial Fit5-263Supported Data TypesSee AlsoDouble-precision floating point Detrend DSP BlocksetPolynomial Evaluation DSP BlocksetPol

Seite 359

Levinson-Durbin5-2645Levinson-DurbinPurpose Solve a linear system of equations using Levinson-Durbin recursion.Library Math Functions / Matrices and L

Seite 360

Levinson-Durbin5-265The prediction error power, P, (a scalar), is output when the Output prediction error power (P) check box is selected. P represen

Seite 361

Levinson-Durbin5-266average (MA) process (or FIR filter) that predicts the next value of a signal from the current signal sample and a finite number o

Seite 362

Levinson-Durbin5-267Output prediction error power (P)When selected, the block outputs the prediction error at portP.If the value of lag 0 is zero, A=[

Seite 363

LMS Adaptive Filter5-2685LMS Adaptive FilterPurpose Compute filter estimates for an input using the LMS adaptive filter algorithm.Library Filtering /

Seite 364 - FIR Rate Conversion

LMS Adaptive Filter5-269scalars. The signal at the Out port is a scalar, while the signal at the Taps port is a sample-based vector. An optional Adapt

Seite 365

LMS Adaptive Filter5-270Dialog BoxFIR filter lengthThe length of the FIR filter.Step-sizeThe step size, usually in the range (0, 2). Tunable.Initial v

Seite 366

LMS Adaptive Filter5-271See AlsoSee “Adaptive Filters” on page 4-3 for related information.Kalman Adaptive Filter DSP BlocksetRLS Adaptive Filter DSP

Seite 367

LU Factorization5-2725LU FactorizationPurpose Factor a square matrix into lower and upper triangular components.Library Math Functions / Matrices and

Seite 368

Signal Concepts3-3Signal ConceptsSimulink models can process both discrete-time and continuous-time signals, although models that are built with the D

Seite 369

LU Factorization5-273Dialog BoxReferencesGolub, G. H., and C. F. Van Loan. Matrix Computations. 3rd ed. Baltimore, MD: Johns Hopkins University Press,

Seite 370 - Forward Substitution

LU Inverse5-2745LU InversePurpose Compute the inverse of a square matrix using LU factorization.Library Math Functions / Matrices and Linear Algebra /

Seite 371

LU Solver5-2755LU SolverPurpose Solve the equation AX=B for X when A is a square matrix.Library Math Functions / Matrices and Linear Algebra / Linear

Seite 372 - Frame Status Conversion

LU Solver5-276Supported Data TypesSee AlsoSee “Solving Linear Systems” on page 4-16 for related information.Double-precision floating point Autocorrel

Seite 373

Magnitude FFT5-2775Magnitude FFTPurpose Compute a nonparametric estimate of the spectrum using the periodogram method.Library Estimation / Power Spect

Seite 374 - 5From Wave Device

Magnitude FFT5-278Dialog BoxOutputDetermines whether the block computes the magnitude FFT (Magnitude) or magnitude-squared FFT (Magnitude squared) of

Seite 375 - Buffering

Magnitude FFT5-279See AlsoSee “Power Spectrum Estimation” on page 4-15 for related information.Burg Method DSP BlocksetShort-Time FFT DSP BlocksetSpec

Seite 376

Matrix 1-Norm5-2805Matrix 1-NormPurpose Compute the 1-norm of a matrix.Library Math Functions / Matrices and Linear Algebra / Matrix OperationsDescrip

Seite 377

Matrix 1-Norm5-281Supported Data TypesSee AlsoDouble-precision floating point Normalization DSP BlocksetReciprocal Condition DSP BlocksetnormMATLAB

Seite 378

Matrix Multiply5-2825Matrix MultiplyPurpose Multiply input matrices.Library Math Functions / Matrices and Linear Algebra / Matrix Operations Descripti

Seite 379 - From Wave File

3 Working with Signals3-4The following sections provide definitions for a number of terms commonly used to describe the time and frequency characteris

Seite 380

Matrix Multiply5-283See AlsoDot Product SimulinkMatrix Product DSP BlocksetMatrix Scaling DSP BlocksetProduct Simulink

Seite 381 - Histogram

Matrix Product5-2845Matrix ProductPurpose Multiply the elements of a matrix along rows or columns.Library Math Functions / Matrices and Linear Algebra

Seite 382 - Running Operation

Matrix Product5-285Dialog BoxMultiply alongThe dimension of the matrix along which to multiply, row or column.Supported Data TypesSee AlsoDouble-preci

Seite 383

Matrix Scaling5-2865Matrix ScalingPurpose Scale the rows or columns of a matrix by a specified vector.Library Math Functions / Matrices and Linear Alg

Seite 384

Matrix Scaling5-287Dialog BoxModeThe mode of operation, row scaling or column scaling. Tunable.Supported Data TypesSee AlsoSingle-precision floating p

Seite 385

Matrix Square5-2885Matrix SquarePurpose Compute the square of the input matrix.Library Math Functions / Matrices and Linear Algebra / Matrix Operation

Seite 386

Matrix Square5-289See AlsoMatrix Multiply DSP BlocksetMatrix Product DSP BlocksetMatrix Sum DSP BlocksetTranspose DSP Blockset

Seite 387 - Identity Matrix

Matrix Sum5-2905Matrix SumPurpose Sum the elements of a matrix along rows or columns.Library Math Functions / Matrices and Linear Algebra / Matrix Ope

Seite 388

Matrix Sum5-291Dialog BoxSum alongThe dimension of the matrix to sum along, row or column.Supported Data TypesSee AlsoSingle-precision floating pointD

Seite 389

Matrix Viewer5-2925Matrix ViewerPurpose Display a matrix as a color image.Library DSP SinksDescription The Matrix Viewer block displays an M-by-N matr

Seite 390

Signal Concepts3-5Note In the block dialog boxes, the term sample time is used to refer to the sample period, Ts. An example is the Sample time param

Seite 391 - Skip normaliza

Matrix Viewer5-293Axis PropertiesClick on the Axis properties check box to expose the axis property parameters, which control labeling and positioning

Seite 392 - Conjugate Symmetric Input

Matrix Viewer5-2941 to N (number of columns), and the y-axis is numbered from 1 to M (number of rows).In addition to the standard MATLAB figure window

Seite 393 - Inputs in Bit-Reversed Order

Matrix Viewer5-295Dialog BoxImage propertiesSelect to expose the image property parameters. Tunable.Colormap matrixA 3-column matrix defining the colo

Seite 394

Matrix Viewer5-296Maximum input valueThe input value to be mapped to the color defined in the last row of the colormap matrix. Select Autoscale from t

Seite 395

Matrix Viewer5-297Supported Data TypesSee AlsoSee “Viewing Signals” on page 3-80 for related information.Fixed-pointCustom data typesBoolean8-, 16-, a

Seite 396 - Inherit Complexity

Maximum5-2985MaximumPurpose Find the maximum values in an input or sequence of inputs.Library StatisticsDescription The Maximum block identifies the v

Seite 397

Maximum5-299and outputs the sample-based 1-by-N index vector, idx. Each value in idx is an integer in the range[1 M] indexing the maximum value in the

Seite 398 - Integer Delay

Maximum5-300For sample-based inputs, a reset event causes the running maximum for each channel to be initialized to the value in the corresponding cha

Seite 399

Maximum5-301The block’s operation is shown in the figure below.The statsdem demo illustrates the operation of several blocks from the Statistics libra

Seite 400

Maximum5-302index (Value and index), or track the maximum value of the input sequence over time (Running).Reset portSpecifies the reset event detected

Seite 401

3 Working with Signals3-6The following sections explain the parameters available in this dialog box:•“Recommended Settings for Discrete-Time Simulatio

Seite 402

Mean5-3035MeanPurpose Find the mean value of an input or sequence of inputs.Library StatisticsDescription The Mean block computes the mean of each col

Seite 403

Mean5-304element yij containing the mean value of the jth column over all inputs since the last reset, up to and including element uij of the current

Seite 404 - Initial conditions: 0

Mean5-305The Discrete Impulse block has the following settings:•Delay (samples) = 2•Sample time = 1•Samples per frame = 1The block’s operation is show

Seite 405

Mean5-306Running meanEnables running operation when selected.Reset portEnables the Rst input port when set to Non-zero sample, and disables the Rst in

Seite 406 - Kalman Adaptive Filter

Median5-3075MedianPurpose Find the median value of an input.Library StatisticsDescription The Median block computes the median value of each column in

Seite 407

Median5-308See AlsoMaximum DSP BlocksetMean DSP BlocksetMinimum DSP BlocksetSort DSP BlocksetStandard Deviation DSP BlocksetVariance DSP Blocksetmedia

Seite 408

Minimum5-3095MinimumPurpose Find the minimum values in an input or sequence of inputs.Library StatisticsDescription The Minimum block identifies the v

Seite 409

Minimum5-310and outputs the sample-based 1-by-N index vector, idx. Each value in idx is an integer in the range[1 M] indexing the minimum value in the

Seite 410

Minimum5-311The Minimum block has the following settings:•Mode = Running•Reset port = Non-zero sampleThe Signal From Workspace block has the following

Seite 411 - LDL Factorization

Minimum5-312Dialog BoxModeThe block’s mode of operation: Output the minimum value of each input (Value), the index of the minimum value (Index), both

Seite 412

Signal Concepts3-7Additional Settings for Discrete-Time Simulations. It is worthwhile to know how the other solver options available in Simulink affec

Seite 413

Minimum5-313Supported Data TypesSee AlsoDouble-precision floating point Maximum DSP BlocksetMean DSP BlocksetMinMax SimulinkHistogram DSP BlocksetminM

Seite 414 - LDL Inverse

Modified Covariance AR Estimator5-3145Modified Covariance AR EstimatorPurpose Compute an estimate of AR model parameters using the modified covariance

Seite 415

Modified Covariance AR Estimator5-315Marple, S. L., Jr., Digital Spectral Analysis with Applications. Englewood Cliffs, NJ: Prentice-Hall, 1987.Suppor

Seite 416 - LDL Solver

Modified Covariance Method5-3165Modified Covariance MethodPurpose Compute a parametric spectral estimate using the modified covariance method.Library

Seite 417

Modified Covariance Method5-317Dialog BoxEstimation orderThe order of the AR model. Inherit FFT length from input dimensionsWhen selected, uses the in

Seite 418 - Least Squares Polynomial Fit

Modified Covariance Method5-318See “Power Spectrum Estimation” on page 4-15 for related information.

Seite 419

Multiphase Clock5-3195Multiphase ClockPurpose Generate multiple binary clock signals.Library Signal Management / Switches and CountersDescription The

Seite 420

Multiphase Clock5-320The Scope window below shows the Multiphase Clock block’s output for these settings. Note that the first active level appears at

Seite 421 - Levinson-Durbin

Multiphase Clock5-321Dialog BoxClock frequencyThe frequency of all output clock signals.Number of phasesThe number of different phases, N, in the outp

Seite 422 - Applications

Multiport Selector5-3225Multiport SelectorPurpose Distribute arbitrary subsets of input rows or columns to multiple output ports.Library Signal Manage

Seite 423

3 Working with Signals3-8Note In the recommended dspstartup settings, SingleTask rate transition is set to Error in the Diagnostics pane in the Simul

Seite 424

Multiport Selector5-323Example Consider the following Indices to output cell array: {4,[1:2 5],[7;8],10:-1:6}This is a four-cell array, which requires

Seite 425 - LMS Adaptive Filter

Multiport Selector5-324Invalid indexResponse to an invalid index value. Tunable.Supported Data TypesSee AlsoFixed-pointCustom data typesBoolean8-, 16-

Seite 426

N-Sample Enable5-3255N-Sample EnablePurpose Output ones or zeros for a specified number of sample times.Library DSP Sources,Signal Management / Switch

Seite 427

N-Sample Enable5-326Trigger countThe number of samples for which the block outputs the active value. Tunable.Active levelThe value to output after the

Seite 428

N-Sample Switch5-3275N-Sample SwitchPurpose Switch between two inputs after a specified number of sample periods.Library Signal Management / Switches

Seite 429 - LU Factorization

N-Sample Switch5-328Dialog BoxSwitch countThe number of sample periods, N, for which the output is connected to the top input before switching to the

Seite 430

Normalization5-3295NormalizationPurpose Normalize an input by its 2-norm or squared 2-norm.Library Math Functions / Math OperationsDescription The Nor

Seite 431 - LU Inverse

Normalization5-330The output has the same dimension and frame status as the input. For convenience, length-M 1-D vector inputs and sample-based length

Seite 432 - LU Solver

Overlap-Add FFT Filter5-3315Overlap-Add FFT FilterPurpose Implement the overlap-add method of frequency-domain filtering.Library Filtering / Filter De

Seite 433

Overlap-Add FFT Filter5-332If either the filter coefficients or the inputs to the block are complex, the Output parameter should be set to Complex. Ot

Seite 434 - Magnitude FFT

Signal Concepts3-9moment inbetween because Simulink implicitly auto-promotes the rate of the slower signal to match the rate of the faster signal befo

Seite 435

Overlap-Add FFT Filter5-333Dialog BoxFFT sizeThe size of the FFT, which should be a power-of-two value greater than the length of the specified FIR fi

Seite 436

Overlap-Save FFT Filter5-3345Overlap-Save FFT FilterPurpose Implement the overlap-save method of frequency-domain filtering.Library Filtering / Filter

Seite 437 - Matrix 1-Norm

Overlap-Save FFT Filter5-335The circular convolution of each section is computed by multiplying the FFTs of the input section and filter coefficients,

Seite 438

Overlap-Save FFT Filter5-336FFT sizeThe size of the FFT, which should be a power-of-two value greater than the length of the specified FIR filter.FIR

Seite 439 - Matrix Multiply

Pad5-3375PadPurpose Alter the input size by padding or truncating rows and/or columns.Library Signal OperationsDescription The Pad block changes the s

Seite 440

Pad5-338Number of output rowsThe desired number of rows in the output, Mo. This parameter is enabled when Columns or Columns and rows is selected in t

Seite 441 - Matrix Product

Permute Matrix5-3395Permute MatrixPurpose Reorder the rows or columns of a matrix. Library Math Functions / Matrices and Linear Algebra / Matrix Opera

Seite 442

Permute Matrix5-340When length of the permutation vector P is not equal to the number of rows or columns of the input matrix A, you can choose to get

Seite 443 - Matrix Scaling

Permute Matrix5-341Dialog BoxPermuteMethod of constructing the output matrix; by permuting rows or columns of the input.Invalid permutation indexRespo

Seite 444

Permute Matrix5-342See “Reordering Channels in a Frame-Based Multichannel Signal” on page 3-61 for related information.

Seite 445 - Matrix Square

iiiDisplaying Signals in the Time-Domain . . . . . . . . . . . . . . . . . . 3-80Displaying Signals in the Frequency-Domain . . . . . . . . . . . .

Seite 446

3 Working with Signals3-10discrete-time blocks, you may need to interpose a Zero-Order Hold block to discretize the signal (see the following diagram)

Seite 447 - Matrix Sum

Polynomial Evaluation5-3435Polynomial EvaluationPurpose Evaluate a polynomial expression. Library Math Functions / Polynomial FunctionsDescription The

Seite 448

Polynomial Evaluation5-344Dialog BoxUse constant coefficientsWhen selected, enables the Constant coefficients parameter and disables the Coeffs input

Seite 449 - Matrix Viewer

Polynomial Stability Test5-3455Polynomial Stability TestPurpose Determine whether all roots of the input polynomial are inside the unit circle using t

Seite 450

Polynomial Stability Test5-346typical in DSP applications, the transfer function above is specified in descending powers of z-1 rather than z. Dialog

Seite 451

Pseudoinverse5-3475PseudoinversePurpose Compute the Moore-Penrose pseudoinverse of a matrix.Library Math Functions / Matrices and Linear Algebra / Mat

Seite 452

Pseudoinverse5-348See AlsoSee “Inverting Matrices” on page 4-19 for related information.Cholesky Inverse DSP BlocksetLDL Inverse DSP BlocksetLU Invers

Seite 453

QR Factorization5-3495QR FactorizationPurpose Factor a rectangular matrix into unitary and upper triangular components.Library Math Functions / Matric

Seite 454

QR Factorization5-350Dialog BoxReferencesGolub, G. H., and C. F. Van Loan. Matrix Computations. 3rd ed. Baltimore, MD: Johns Hopkins University Press,

Seite 455 - Index Mode

QR Solver5-3515QR SolverPurpose Find a minimum-norm-residual solution to the equation AX=B.Library Math Functions / Matrices and Linear Algebra / Line

Seite 456 - Running Mode

QR Solver5-352is solved for X by noting that Q-1=Q* and substituting Y =Q*Be. This requires computing a matrix multiplication for Y and solving a tria

Seite 457

Signal Concepts3-11Multichannel SignalsThe following figure shows the prototypical discrete-time signal discussed in “Discrete-Time Signals” on page 3

Seite 458

Queue5-3535QueuePurpose Store inputs in a FIFO register.Library Signal Management / BuffersDescription The Queue block stores a sequence of input samp

Seite 459

Queue5-354the Queue block is reenabled; the Out port value is only reset to zero in this case if Clear output port on reset is selected.When two or mo

Seite 460 - Basic Operation

Queue5-355Examples Example 1The table below illustrates the Queue block’s operation for a Register size of 4, Trigger type of Either edge, and Clear o

Seite 461

Queue5-356Dialog BoxRegister sizeThe number of entries that the FIFO register can hold.Trigger typeThe type of event that triggers the block’s executi

Seite 462

Queue5-357Clear inputEnable the Clr input port, which empties the queue when the trigger specified by the Trigger type is received.Clear output port o

Seite 463

Random Source5-3585Random SourcePurpose Generate randomly distributed values.Library DSP SourcesDescription The Random Source block generates a frame

Seite 464

Random Source5-359Variance parameters generates an N-channel output (M-by-N frame matrix) containing a distinct random distribution in each column. Wh

Seite 465

Random Source5-360The specified variance is equally divided between the real and imaginary components, so thatOutput RepeatabilityThe Repeatability pa

Seite 466

Random Source5-361a five-channel output is equivalent to specifying an Initial seed vector of[1012141618]. For complex outputs (Output complexity para

Seite 467

Random Source5-362Dialog BoxSource typeThe distribution from which to draw the random values, Uniform or Gaussian.MinimumThe minimum value in the unif

Seite 468

3 Working with Signals3-12Then the signal in channel 1 is composed of the following sequence.Similarly, channel 9 (counting down the columns) contains

Seite 469

Random Source5-363MaximumThe maximum value in the uniform distribution. This parameter is only enabled when Uniform is selected from the Source type p

Seite 470

Random Source5-364Sample timeThe sample period, Ts, of the random output sequence. The output frame period is M∗Ts. This parameter is enabled when the

Seite 471

Real Cepstrum5-3655Real CepstrumPurpose Compute the real cepstrum of an input. Library TransformsDescription The Real Cepstrum block computes the real

Seite 472

Real Cepstrum5-366Inherit FFT length from input port dimensionsWhen selected, matches the output frame size to the input frame size.FFT lengthThe numb

Seite 473 - Modified Covariance Method

Reciprocal Condition5-3675Reciprocal ConditionPurpose Compute the reciprocal condition of a square matrix in the 1-norm.Library Math Functions / Matri

Seite 474

Reciprocal Condition5-368Dialog BoxReferencesGolub, G. H., and C. F. Van Loan. Matrix Computations. 3rd ed. Baltimore, MD: Johns Hopkins University Pr

Seite 475

Repeat5-3695RepeatPurpose Resample an input at a higher rate by repeating values.Library Signal OperationsDescription The Repeat block upsamples each

Seite 476 - Multiphase Clock

Repeat5-370•Maintain input frame rateThe block generates the output at the faster (upsampled) rate by using a proportionally larger frame size than th

Seite 477

Repeat5-371The block also has zero latency for all multirate operations in Simulink’s single-tasking mode.Zero tasking latency means that the block re

Seite 478

Repeat5-372output frame period of 1 (0.25∗4). The first channel should contain the positive ramp signal 1, 2, ..., 100, and the second channel should

Seite 479 - 5Multiport Selector

Signal Concepts3-13(or time slice) from N distinct signal channels, and each matrix column represents M consecutive samples from a single channel.This

Seite 480

Repeat5-373 14 -14 1 -1 1 -1 2 -2 2 -2 3 -3 3 -3 4 -4 4 -4 5 -5 5 -5Since w

Seite 481

Repeat5-374Frame-based modeFor frame-based operation, the method by which to implement the repetition (upsampling): Maintain input frame size (i.e., i

Seite 482 - N-Sample Enable

RLS Adaptive Filter5-3755RLS Adaptive FilterPurpose Compute filter estimates for an input using the RLS adaptive filter algorithm.Library Filtering /

Seite 483

RLS Adaptive Filter5-376The block icon has port labels corresponding to the inputs and outputs of the RLS algorithm. Note that inputs to the In and Er

Seite 484 - 5N-Sample Switch

RLS Adaptive Filter5-377Dialog BoxFIR filter lengthThe length of the FIR filter.Memory weighting factorThe exponential weighting factor, in the range

Seite 485

RLS Adaptive Filter5-378See “Adaptive Filters” on page 4-3 for related information.

Seite 486 - Normalization

RMS5-3795RMSPurpose Compute the root-mean-square (RMS) value of an input or sequence of inputs.Library StatisticsDescription The RMS block computes th

Seite 487

RMS5-380parameter to None.) For sample-based inputs, the running RMS for each channel is initialized to the value in the corresponding channel of the

Seite 488 - Overlap-Add FFT Filter

RMS5-381Dialog BoxRunning RMSEnables running operation when selected.Reset portEnables the Rst input port when set to Non-zero sample, and disables th

Seite 489

RMS5-382See AlsoMean DSP BlocksetVariance DSP Blockset

Seite 490

3 Working with Signals3-14•“Importing Signals” on page 3-62•“Exporting Signals” on page 3-72•“Viewing Signals” on page 3-80Benefits of Frame-Based Pro

Seite 491 - Overlap-Save FFT Filter

Sample and Hold5-3835Sample and HoldPurpose Sample and hold an input signal.Library Signal OperationsDescription The Sample and Hold block acquires th

Seite 492

Sample and Hold5-384Initial conditionThe block’s output prior to the first trigger event.Supported Data TypesSee AlsoFixed-pointCustom data typesBoole

Seite 493

Short-Time FFT5-3855Short-Time FFTPurpose Compute a nonparametric estimate of the spectrum using the short-time, fast Fourier transform (ST-FFT) metho

Seite 494 - Library Signal Operations

Short-Time FFT5-386Dialog BoxWindow typeThe type of window to apply. (See the Window Function block reference.) Tunable.Stopband attenuation in dBThe

Seite 495

Short-Time FFT5-387parameter is enabled when Inherit FFT length from input dimensions is not selected.Number of spectral averagesThe number of spectra

Seite 496 - 5Permute Matrix

Signal From Workspace5-3885Signal From WorkspacePurpose Import a signal from the MATLAB workspace.Library DSP SourcesDescription The Signal From Works

Seite 497

Signal From Workspace5-389•If Cyclic Repetition is specified, the block repeats the signal from the beginning after generating the last frame. If ther

Seite 498

Signal From Workspace5-390The Samples per frame parameter is set to 1 for 3-D input.Dialog BoxSignalThe name of the MATLAB workspace variable from whi

Seite 499

Signal From Workspace5-391Form output after final data value bySpecifies the output after all of the specified signal samples have been generated. The

Seite 500 - Polynomial Evaluation

Signal To Workspace5-3925Signal To WorkspacePurpose Write simulation data to an array in MATLAB’s main workspace.Library DSP SinksDescription The Sign

Seite 501

Signal Concepts3-15It’s important to note that frame-based processing will introduce a certain amount of latency into a process due to the inherent la

Seite 502 - Polynomial Stability Test

Signal To Workspace5-393The Frames parameter sets the dimension of the output array to 2-D or 3-D for frame-based inputs. The block ignores this param

Seite 503

Signal To Workspace5-394Matching the Outputs of Signal To Workspace and To Workspace BlocksThe To Workspace block in Simulink’s Sinks Library and the

Seite 504 - Pseudoinverse

Signal To Workspace5-395The Example 1 block settings are as follows.input1 = cat(3, [1 1; -1 0], [2 1; -2 0],...,[11 1; -11 0])Example 2: Frame-Based

Seite 505

Signal To Workspace5-396frames (two samples per frame) by the end of the simulation. The frames are concatenated to create a 22-by-4 matrix, A, in the

Seite 506 - QR Factorization

Signal To Workspace5-397Dialog BoxVariable nameThe name of the array that holds the input data. Tunable.Limit data points to lastThe maximum number of

Seite 507

Sine Wave5-3985Sine WavePurpose Generate a continuous or discrete sine wave.Library DSP SourcesDescription The Sine Wave block generates a multichanne

Seite 508 - QR Solver

Sine Wave5-399In all discrete modes (see below), the block buffers the sampled sinusoids into frames of size M, where M is specified by the Samples pe

Seite 509

Sine Wave5-400•DiscreteIn discrete mode, the block’s discrete-time output can be generated by directly evaluating the trigonometric function, by table

Seite 510 - Clear input check box)

Sine Wave5-401Table Lookup. The table look-up method precomputes the unique samples of every output sinusoid at the start of the simulation, and recal

Seite 511

Sine Wave5-402This mode offers reduced computational load, but is subject to drift over time due to cumulative quantization error. Because the method

Seite 512 - Example 2

3 Working with Signals3-16Sample Rates and Frame Rates Sample rates are an important issue in most DSP models, especially in systems incorporating rat

Seite 513

Sine Wave5-403length must be the same as that specified for the Frequency and Phase parameters. Tunable; the amplitude values can be altered while a s

Seite 514

Sine Wave5-404Sample timeThe period with which the sine wave is sampled, Ts. The block’s output frame period is M∗Ts, where M is specified by the Samp

Seite 515 - Random Source

Singular Value Decomposition5-4055Singular Value DecompositionPurpose Factor a matrix using singular value decomposition.Library Math Functions / Matr

Seite 516

Singular Value Decomposition5-406References Golub, G. H., and C. F. Van Loan. Matrix Computations. 3rd ed. Baltimore, MD: Johns Hopkins University Pre

Seite 517

Sort5-4075SortPurpose Sort the elements in the input by value.Library StatisticsDescription The Sort block sorts the elements in each column of the in

Seite 518 - Sample Period

Sort5-408Value and Index ModeWhen Mode is set to Value and Index, the block outputs both the sorted matrix, val, and the index matrix, idx.Dialog BoxM

Seite 519

Spectrum Scope5-4095Spectrum ScopePurpose Compute and display the short-time FFT of each input signal.Library DSP SinksDescription The Spectrum Scope

Seite 520

Spectrum Scope5-410the number of samples on which to perform the FFT. The block zero pads or truncates every channel’s buffer to Nfft before computing

Seite 521

Spectrum Scope5-411For information about the scope window, as well as the Display properties, Axis properties, and Line properties panels in the dialo

Seite 522 - Real Cepstrum

Spectrum Scope5-412FFT lengthThe number of samples on which to perform the FFT. If the FFT length differs from the buffer size, the data is zero-padde

Seite 523

Sample Rates and Frame Rates3-17where Mi and Mo are the input and output frame sizes, respectively.The illustration below shows a one-channel frame-ba

Seite 524 - Reciprocal Condition

Stack5-4135StackPurpose Store inputs into a LIFO register.Library Signal Management / BuffersDescription The Stack block stores a sequence of input sa

Seite 525

Stack5-414When two or more of the control input ports are triggered at the same time step, the operations are executed in the following order:1 Clr 2

Seite 526

Stack5-415represents a distinct trigger event. A 1 in the Empty column indicates an empty buffer, while a1 in the Full column indicates a full buffer.

Seite 527 - Maintain input frame rate

Stack5-416Dialog BoxStack depthThe number of entries that the LIFO register can hold.Trigger typeThe type of event that triggers the block’s execution

Seite 528 - Initial condition

Stack5-417Clear inputEnable the Clr input port, which empties the stack when the trigger specified by the Trigger type is received.Clear output port o

Seite 529

Standard Deviation5-4185Standard DeviationPurpose Find the standard deviation of an input or sequence of inputs.Library StatisticsDescription The Stan

Seite 530

Standard Deviation5-419Running OperationWhen the Running standard deviation check box is selected, the block tracks the standard deviation of each cha

Seite 531

Standard Deviation5-420whereu = [6 1 3 -7 2 5 8 0 -1 -3 2 1;1 3 9 2 4 1 6 2 5 0 4 17]'The Discrete Impulse block has the following settings:•Dela

Seite 532 - RLS Adaptive Filter

Standard Deviation5-421Dialog BoxRunning standard deviationEnables running operation when selected.Reset portEnables the Rst input port when set to No

Seite 533

Submatrix5-4225SubmatrixPurpose Select a subset of elements (submatrix) from a matrix input.Library Math Functions / Matrices and Linear Algebra / Mat

Seite 534

3 Working with Signals3-18The block displays the label Ts or Tf, followed by a two-element vector. The first (left) element is the period of the signa

Seite 535

Submatrix5-423The Row, Column, Starting row or Starting column can be specified in six ways:•FirstFor rows, this specifies that the first row of u sho

Seite 536

Submatrix5-424columns are to be included, this is equivalent to y(1,:) = u(M/2-firstrow,:).For columns, this specifies that the column ofu offset from

Seite 537

Submatrix5-425•LastFor rows, this specifies that the last row of u should be used as the last row ofy. If all columns are to be included, this is equi

Seite 538

Submatrix5-426The figure below shows the operation for a 5-by-7 matrix with random integer elements, randint(5,7,10).There are often several possible

Seite 539

Submatrix5-427Row spanThe range of input rows to be retained in the output. Options are All rows, One row, or Range of rows. Row/Starting rowThe input

Seite 540 - Sample and Hold

Submatrix5-428Column/Starting columnThe input column to be used as the first column of the output. Column is enabled when One column is selected from

Seite 541

Submatrix5-429See AlsoSee “Deconstructing Signals” on page 3-54 for related information.Reshape SimulinkSelector SimulinkVariable Selector DSP Blockse

Seite 542 - Short-Time FFT

SVD Solver5-4305SVD SolverPurpose Solve the equation AX=B using singular value decomposition.Library Math Functions / Matrices and Linear Algebra / Li

Seite 543

SVD Solver5-431See AlsoSee “Solving Linear Systems” on page 4-16 for related information.Autocorrelation LPC DSP BlocksetCholesky Solver DSP BlocksetL

Seite 544

Time Scope5-4325Time ScopeThe Time Scope block is the same as the Scope block in Simulink. To learn how to use the Time Scope block, see the Scope blo

Seite 545 - Signal From Workspace

Sample Rates and Frame Rates3-19Note that the sample rate conversion is implemented through a change in the frame period rather than the frame size. T

Seite 546

Time-Varying Direct-Form II Transpose Filter5-4335Time-Varying Direct-Form II Transpose FilterPurpose Apply a variable IIR filter to the input.Library

Seite 547

Time-Varying Direct-Form II Transpose Filter5-434•Pole-zeroThe block accepts inputs for both the numerator (Num) and denominator (Den) vectors. Input

Seite 548

Time-Varying Direct-Form II Transpose Filter5-435•VectorThe vector has a length equal to the number of delay elements in each filter channel, max(m,n)

Seite 549 - Signal To Workspace

Time-Varying Direct-Form II Transpose Filter5-436Dialog BoxFilter typeThe type of filter to apply: Pole-Zero (IIR), All-Zero (FIR), or All-Pole (AR).

Seite 550 - Output Dimension Summary

Time-Varying Direct-Form II Transpose Filter5-437See AlsoSee “Designing Filters with Various Filter Structures” on page 4-6 for related information.Di

Seite 551

Time-Varying Lattice Filter5-4385Time-Varying Lattice FilterPurpose Apply a variable lattice filter to the input.Library Filtering / Filter DesignsDes

Seite 552

Time-Varying Lattice Filter5-439The Initial conditions parameter may take one of four forms:•Empty matrixThe empty matrix, [], causes a zero (0) initi

Seite 553

Time-Varying Lattice Filter5-440Dialog BoxFilter typeThe type of filter to apply: MA or AR. The MA or AR input port is enabled or disabled appropriate

Seite 554

Time-Varying Lattice Filter5-441See “Designing Filters with Various Filter Structures” on page 4-6 for related information.

Seite 555 - Sine Wave

Toeplitz5-4425ToeplitzPurpose Generate a matrix with Toeplitz symmetry.Library Math Functions / Matrices and Linear Algebra / Matrix OperationsDescrip

Seite 556

iv ContentsQueues Demo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-26Sigma-Delta A/D Conversion Demo . . . . .

Seite 557

3 Working with Signals3-20Because the Frame-based mode parameter in the Upsample blocks is set to Maintain input frame size rather than Maintain input

Seite 558

Toeplitz5-443The output has the same frame status as the input.Dialog BoxSymmetricWhen selected, enables the single-input configuration for symmetric

Seite 559

To Wave Device5-4445To Wave DevicePurpose Send audio data to a standard audio device in real-time (Windows only).Library DSP SinksDescription The To W

Seite 560

To Wave Device5-445BufferingBecause the audio device generates real-time audio output, Simulink must maintain a continuous flow of data to the device

Seite 561

To Wave Device5-446the hardware throughput rate is higher than the simulation throughput rate, and the buffer tends to empty over the duration of the

Seite 562 - Singular Value Decomposition

To Wave Device5-447signal to be preloaded into the hardware buffer. A value of 0 for the Initial output delay parameter specifies the smallest possibl

Seite 563

To Wave Device5-448a value of 2 selects the second audio card, and so on. Select Use default audio device if the system has only a single audio card i

Seite 564

To Wave File5-4495To Wave FilePurpose Write audio data to file in the Microsoft Wave (.wav) format (Windows only).Library DSP SinksDescription The To

Seite 565

To Wave File5-450Dialog BoxFile nameThe path and name of the file to write. Paths can be relative or absolute. Tunable.Sample width (bits)The number o

Seite 566 - Spectrum Scope

Transpose5-4515TransposePurpose Compute the transpose of a matrix.Library Math Functions / Matrices and Linear Algebra / Matrix OperationsDescription

Seite 567

Transpose5-452Supported Data TypesSee AlsoFixed-pointCustom data typesBoolean8-, 16-, and 32-bit signed integer 8-, 16-, and 32-bit unsigned integerSi

Seite 568

Sample Rates and Frame Rates3-21•Direct rate conversionsDirect rate conversions, such as upsampling and downsampling, are a feature of most DSP system

Seite 569

Triggered Delay Line5-4535Triggered Delay LinePurpose Buffer a sequence of inputs into a frame-based output.Library Signal Management / BuffersDescrip

Seite 570

Triggered Delay Line5-454frame-based Mo-by-N matrix outputs, where Mo is the output frame size specified by the Delay line size parameter (i.e., the n

Seite 571

Triggered Delay Line5-455Supported Data TypesSee AlsoFixed-pointCustom data typesBoolean8-, 16-, and 32-bit signed integer 8-, 16-, and 32-bit unsigne

Seite 572

Triggered Signal From Workspace5-4565Triggered Signal From WorkspacePurpose Import signal samples from the MATLAB workspace when triggered.Library DSP

Seite 573

Triggered Signal From Workspace5-457interpolation takes place). For single-channel signals, the Initial output parameter value can be a vector of leng

Seite 574

Triggered Signal From Workspace5-458Dialog BoxSignalThe name of the MATLAB workspace variable from which to import the signal, or a valid MATLAB expre

Seite 575 - Standard Deviation

Triggered Signal From Workspace5-459Supported Data TypesSee AlsoSee the sections below for related information:•“Discrete-Time Signals” on page 3-3•“M

Seite 576

Triggered To Workspace5-4605Triggered To WorkspacePurpose Write the input sample to the workspace when triggered.Library DSP SinksDescription The Trig

Seite 577

Triggered To Workspace5-461Parameters dialog. You can access these parameters by selecting Parameters from the Simulation menu, and clicking on the Wo

Seite 578

Triggered To Workspace5-462See AlsoSee “Exporting Signals” on page 3-72 for related information.Signal From Workspace DSP BlocksetTo Workspace Simulin

Seite 579 - Submatrix

3 Working with Signals3-22Rate Conversion Blocks. The following table lists the principal rate conversion blocks in the DSP Blockset. Blocks marked wi

Seite 580

Unbuffer5-4635UnbufferPurpose Unbuffer a frame input to a sequence of scalar outputs.Library Signal Management / BuffersDescription The Unbuffer block

Seite 581 - N/2 by the

Unbuffer5-464LatencyZero Latency. The Unbuffer block has zero tasking latency in Simulink’s single-tasking mode. Zero tasking latency means that the f

Seite 582 - •Starting column offset = 1

Unbuffer5-465See “Excess Algorithmic Delay (Tasking Latency)” on page 3-91 and “The Simulation Parameters Dialog Box” in the Simulink documentation fo

Seite 583

Uniform Decoder5-4665Uniform DecoderPurpose Decode an integer input to a floating-point output.Library QuantizersDescription The Uniform Decoder block

Seite 584

Uniform Decoder5-467Signed input values, u, greater than 2B-1-1 or less than -2B-1 are wrapped back into that range using mod-2B arithmetic.u = (mod(u

Seite 585

Uniform Decoder5-468Dialog BoxPeakThe largest amplitude represented in the encoded input. To correctly decode values encoded with the Uniform Encoder

Seite 586

Uniform Decoder5-469See AlsoData Type Conversion SimulinkQuantizer SimulinkUniform Encoder DSP BlocksetudecodeSignal Processing ToolboxuencodeSignal P

Seite 587 - SVD Solver

Uniform Encoder5-4705Uniform EncoderPurpose Quantize and encode a floating-point input to an integer output.Library QuantizersDescription The Uniform

Seite 588

Uniform Encoder5-471Inputs can be real or complex, double or single precision. The output data types that the block uses are shown in the table below.

Seite 589 - Library DSP Sinks

Uniform Encoder5-472The real and complex components of each input (horizontal axis) are independently quantized to one of 23 distinct levels in the ra

Seite 590 - Filter Type

Sample Rates and Frame Rates3-23The sample period and frame size of the original signal are set to 0.125 seconds and 8 samples per frame, respectively

Seite 591

Uniform Encoder5-473Dialog BoxPeakThe largest input amplitude to be encoded, V. Real or imaginary input values greater than (1-21-B)V or less than -V

Seite 592 - Filter Update Rate

Unwrap5-4745UnwrapPurpose Unwrap the phase of a signal.Library Signal OperationsDescription The Unwrap block unwraps each input channel by adding or s

Seite 593

Unwrap5-475The Two Unwrap ModesYou must specify the unwrap mode by setting the parameter, Do not unwrap phase discontinuities between successive frame

Seite 594

Unwrap5-476Two Unwrap ModesIn both unwrap modes, the block adds to each input channel’s elements, where it updates k at each phase discontinuity. (F

Seite 595 - Time-Varying Lattice Filter

Unwrap5-477The following diagrams illustrate how the two unwrap modes operate on various inputs.002π3----02– π3-----0002π3----04π3----06π3----08π3----

Seite 596

Unwrap5-478The block unwraps each row, treating each input row vector as completely independent of the other input row vectors.002π3----04π3----0002π3

Seite 597

Unwrap5-479Unwrap MethodThe Unwrap block unwraps each channel of its input matrix or input vector by adding to each successive channel element, and

Seite 598

Unwrap5-480diagram. For more on phase unwrap, see the previous section, “Unwrap Method” on page 5-479.

Seite 599 - 5Toeplitz

Unwrap5-481 0510152025300 2 4 6 8 10 12 14 16−50510152025300 pi 2pi 3pi 4pi 5pi 6pi0()sin2π5------4π5------6π5------…28π5----------si

Seite 600

Unwrap5-482Limitations The Unwrap block detects branch cut crossings, but can be fooled by sparse, rapidly changing phase values.Dialog Box02π 4π…,,,2

Seite 601 - 5To Wave Device

3 Working with Signals3-24As before, the frame rate of the original signal is 1 second (0.125∗8), shown by the first Probe block. Now the Downsample b

Seite 602

Unwrap5-483Do not unwrap phase discontinuities between successive framesWhen this parameter is cleared, the block unwraps each input’s channels (the i

Seite 603

Upsample5-4845UpsamplePurpose Resample an input at a higher rate by inserting zeros.Library Signal OperationsDescription The Upsample block resamples

Seite 604

Upsample5-485•Maintain input frame rateThe block generates the output at the faster (upsampled) rate by using a proportionally larger frame size than

Seite 605

Upsample5-486Latency and Initial ConditionsZero Latency. The Upsample block has zero tasking latency for all single-rate operations. The block is sing

Seite 606 - 5To Wave File

Upsample5-487See “Excess Algorithmic Delay (Tasking Latency)” on page 3-91 and “The Simulation Parameters Dialog Box” in the Simulink documentation fo

Seite 607

Upsample5-488•Configure the Probe blocks by deselecting the Probe width and Probe complex signal check boxes (if desired).This model is multirate beca

Seite 608 - Transpose

Upsample5-489Dialog BoxUpsample factorThe integer factor, L, by which to increase the input sample rate. Sample offsetThe sample offset, D, which must

Seite 609

Upsample5-490See AlsoDownsample DSP BlocksetFIR Interpolation DSP BlocksetFIR Rate Conversion DSP BlocksetRepeat DSP Blockset

Seite 610 - Triggered Delay Line

Variable Fractional Delay5-4915Variable Fractional DelayPurpose Delay an input by a time-varying fractional number of sample periods.Library Signal Op

Seite 611

Variable Fractional Delay5-492The input to the Delay port, v, contains floating-point values in the range 0 ≤ v ≤ D specifying the number of sample in

Seite 612

Sample Rates and Frame Rates3-25However, this is only true when the original signal is preserved in the buffering operation, with no samples added or

Seite 613 - Initial and Final Conditions

Variable Fractional Delay5-493Delay values less than 0 are clipped to 0, and delay values greater than D are clipped to D, where D is the Maximum dela

Seite 614

Variable Fractional Delay5-494For delay values less than P/2-1, the output is computed using linear interpolation. Delay values greater than D are cli

Seite 615

Variable Fractional Delay5-495Maximum delayThe maximum delay that the block can produce, D. Delay input values exceeding this maximum are clipped at t

Seite 616

Variable Integer Delay5-4965Variable Integer DelayPurpose Delay the input by a time-varying integer number of sample periods.Library Signal Operations

Seite 617 - 5Triggered To Workspace

Variable Integer Delay5-497The Variable Integer Delay block stores the D+1 most recent samples received at the In port for each channel. At each sampl

Seite 618

Variable Integer Delay5-498Integer Delay block does not have a fixed initial delay period during which the initial conditions appear at the output. In

Seite 619

Variable Integer Delay5-499the block initializes U(2:6) with values [-1, -1, -1, 0, 1]. •Array of dimension M-by-N-by-D with which to initialize memor

Seite 620 - Unbuffer

Variable Integer Delay5-500sequence, the second sample in the current output frame is the input sample v(2) intervals earlier in the sequence, and so

Seite 621

Variable Integer Delay5-501Fixed Initial Conditions. The settings shown below specify fixed initial conditions. For a fixed initial condition, the blo

Seite 622

Variable Integer Delay5-502•Array of size 1-by-N-by-D. In this case, you can specify different time-varying initial conditions for each channel. For t

Seite 623 - Uniform Decoder

3 Working with Signals3-26The Buffer block preserves the signal’s data and sample period only when its Buffer overlap parameter is set to 0. The outpu

Seite 624

Variable Integer Delay5-503Maximum delayThe maximum delay that the block can produce for any sample. Delay input values exceeding this maximum are cli

Seite 625

Variable Selector5-5045Variable SelectorPurpose Select a subset of rows or columns from the input.Library Signal Management / IndexingDescription The

Seite 626

Variable Selector5-505•Clip index – Clip the index to the nearest valid value, and do not issue an alert. Example: For a 64-by-N input, an index of 72

Seite 627 - Uniform Encoder

Variable Selector5-506ElementsA vector containing the indices of the input rows or columns that will appear in the output matrix. This parameter is av

Seite 628

Variance5-5075VariancePurpose Compute the variance of an input or sequence of inputs.Library StatisticsDescription The Variance block computes the var

Seite 629

Variance5-508element yij containing the variance of element uij over all inputs since the last reset. For frame-based inputs, the output is a frame-ba

Seite 630

Variance5-509•Sample time = 1•Samples per frame = 1The block’s operation is shown in the figure below.The statsdem demo illustrates the operation of s

Seite 631

Variance5-510Reset portEnables the Rst input port when set to Non-zero sample, and disables the Rst input port when set to None.Supported Data TypesSe

Seite 632 - The Two Unwrap Modes

Vector Scope5-5115Vector ScopePurpose Display a vector or matrix of time-domain, frequency-domain, or user-defined data.Library DSP SinksDescription T

Seite 633

Vector Scope5-512assume that it is time-domain or frequency-domain data. The dialog box parameters give you complete freedom to plot the data in the m

Seite 634 - Tolerance parameter = π

Sample Rates and Frame Rates3-27•Buffer adds duplicate samples to a sequence when the Buffer overlap parameter, L, is set to a nonzero value. The outp

Seite 635

Vector Scope5-513Scaling the Horizontal Axis for User-Defined SignalsTo correctly scale the horizontal axis for user-defined signals, the block needs

Seite 636 - Definition of Phase Unwrap

Vector Scope5-514•Each frame of frequency-domain data shares the same length as the frame of time-domain data from which it was generated; for example

Seite 637 - Method” on page 5-479

Vector Scope5-515user-defined data, a Horizontal display span parameter serves the same function. Both of these parameters must be 1 or greater. See “

Seite 638 - 0 pi 2pi 3pi 4pi 5pi 6pi

Vector Scope5-516to reposition it in the scope window; double click on the line label to edit the text. Note that when the simulation is rerun, the ne

Seite 639

Vector Scope5-517Minimum Y-limit and Maximum Y-limit set the range of the vertical axis. If Autoscale is selected from the right-click pop-up menu or

Seite 640

Vector Scope5-518Line PropertiesBoth the Vector Scope and Spectrum scope also offer a similar collection of line property settings. These can be expos

Seite 641 - Upsample

Vector Scope5-519For example, a five-channel signal would ordinarily generate all five plots with a solid line style. To instead plot each line with a

Seite 642

Vector Scope5-520These settings plot the signal channels with the following styles.Note that the first (leftmost) list item, '*', correspond

Seite 643

Vector Scope5-521These settings plot the signal channels in the following colors (8-bit RGB equivalents shown in the center column).Note that the firs

Seite 644

Vector Scope5-522•Save Position automatically updates the Scope position parameter in the Axis properties field to reflect the scope window’s current

Seite 645

3 Working with Signals3-28Example: Buffering with Alteration of the Signal. In the model below, a signal with a sample period of 0.125 seconds is rebu

Seite 646

Vector Scope5-523Dialog Box Scope Properties Dialog BoxScope propertiesSelect to expose Scope properties panel. Tunable.Input domainThe domain of the

Seite 647

Vector Scope5-524Display Properties Dialog BoxDisplay propertiesSelect to expose Display properties panel. Tunable.Show gridToggles the scope grid on

Seite 648 - Variable Fractional Delay

Vector Scope5-525Open scope immediatelyOpens the scope from the Vector Scope parameters dialog box while the simulation is running. The check box beco

Seite 649 - Interpolation Modes

Vector Scope5-526of frequency-domain data is the same as the length of the frame of time-domain data from which is was generated. (Visible when the In

Seite 650

Vector Scope5-527Line Properties Dialog BoxLine propertiesSelect to expose the Line Properties panel. Tunable.Line visibilitiesThe visibility of the v

Seite 651

Vector Scope5-528See AlsoSee “Viewing Signals” on page 3-80 for related information.Matrix Viewer DSP BlocksetSpectrum Scope DSP Blockset

Seite 652

Wavelet Analysis5-5295Wavelet AnalysisPurpose Decompose a signal into components of logarithmically decreasing frequency intervals and sample rates (r

Seite 653 - Variable Integer Delay

Wavelet Analysis5-530Filter CoefficientsThe filter coefficients for the highpass and lowpass filters are computed by the Wavelet Toolbox function wfil

Seite 654

Wavelet Analysis5-531(except the last) are half that of the output from the previous level. In general, for an input with sample period Tsi=Ts, and ba

Seite 655

Wavelet Analysis5-532Frame-Based OperationAn Mi-by-N frame-based matrix input is treated as N independent channels, and the block filters each channel

Seite 656

Sample Rates and Frame Rates3-29To build the model, configure one Sine Wave block with Frequency = 1, and the other with Frequency = 2. In addition, b

Seite 657

Wavelet Analysis5-5332n-1 output samples, before propagating the first analyzed input sample (computed from the input received at t=0). See “Excess Al

Seite 658

Wavelet Analysis5-534References Fliege, N. J. Multirate Digital Signal Processing: Multirate Systems, Filter Banks, Wavelets. West Sussex, England: Jo

Seite 659

Wavelet Synthesis5-5355Wavelet SynthesisPurpose Reconstruct a signal from its multirate bandlimited components (requires the Wavelet Toolbox).Library

Seite 660

Wavelet Synthesis5-536For perfect reconstruction, the Wavelet Synthesis and Wavelet Analysis blocks must have the same parameter settings. Filter Coef

Seite 661 - 5Variable Selector

Wavelet Synthesis5-537Tree StructureThe wavelet tree structure has n+1 inputs, where n is the number of levels. The sample rate and bandwidth of the o

Seite 662

Wavelet Synthesis5-538The figure below shows the input and output sample periods for the four 64-channel sample-based inputs to a three-level filter b

Seite 663

Wavelet Synthesis5-539LatencyZero Latency. The Wavelet Synthesis block has no tasking latency for frame-based operation, which is always single-rate.

Seite 664 - Variance

Wavelet Synthesis5-540Wavelet orderThe order for the Daubechies, Symlets, and Coiflets wavelets. This parameter is available only when one of these wa

Seite 665

Window Function5-5415Window FunctionPurpose Compute a window, and/or apply a window to an input signal.Library DSP Sources, Signal OperationsDescripti

Seite 666

Window Function5-542Window SamplingFor the generalized-cosine windows (Blackman, Hamming, and Hann), the Sampling parameter determines whether the win

Seite 667

vConstant Diagonal Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-82Constant Ramp . . . . . . . . . . . . . . . . . . . . . . .

Seite 668 - Vector Scope

3 Working with Signals3-30The Vector Scope block uses the input frame size (128) and period (12.8) to deduce the original signal’s sample period (0.1)

Seite 669

Window Function5-543RectangularComputes a rectangular window.w = rectwin(M)ChebyshevComputes a Chebyshev window with stopband ripple R.w = chebwin(M,R

Seite 670

Window Function5-544Dialog BoxOperationThe block’s operation: Apply window to input, Generate window, or Generate and apply window. The input/output p

Seite 671

Window Function5-545Window function name(Not shown in dialog above. Visible for User defined windows.) The name of the user-defined window function to

Seite 672 - Display Properties

Yule-Walker AR Estimator5-5465Yule-Walker AR EstimatorPurpose Compute an estimate of AR model parameters using the Yule-Walker method.Library Estimati

Seite 673 - Axis Properties

Yule-Walker AR Estimator5-547Dialog BoxOutput(s)The type of AR model coefficients output by the block. The block can output polynomial coefficients (A

Seite 674

Yule-Walker AR Estimator5-548See AlsoBurg AR Estimator DSP BlocksetCovariance AR Estimator DSP BlocksetModified Covariance AR Estimator DSP BlocksetYu

Seite 675 - Line Properties

Yule-Walker Method5-5495Yule-Walker MethodPurpose Compute a parametric estimate of the spectrum using the Yule-Walker AR method.Library Estimation / P

Seite 676

Yule-Walker Method5-550Dialog BoxInherit estimation order from input dimensionsWhen selected, sets the estimation order to one less than the length of

Seite 677

Yule-Walker Method5-551Supported Data TypesSee AlsoSee “Power Spectrum Estimation” on page 4-15 for related information.Double-precision floating poin

Seite 678 - Scope Window

Zero Pad5-5525Zero PadPurpose Alter the input size by zero-padding or truncating rows and/or columns.Library Signal OperationsDescription The Zero Pad

Seite 679

Sample Rates and Frame Rates3-31In this case, based on the input frame size (256) and period (12.8), the Vector Scope block calculates the original si

Seite 680

Zero Pad5-553•NoneWhen None is selected, the input is passed through to the output without padding or truncation. Example In the model below, the 3-by

Seite 681 - Display Properties Dialog Box

Zero Pad5-554column and row dimensions should be changed; None disables padding and truncation and passes the input through to the output unchanged.Nu

Seite 682

6 DSP Function ReferenceDSP Blockset Utility Functions . . . . . . . . . . . 6-2

Seite 683

6 DSP Function Reference6-2DSP Blockset Utility FunctionsIn addition to the blocks contained in the DSP Blockset libraries, a number of utility functi

Seite 684 - Line Properties Dialog Box

dsp_links6-36dsp_linksPurpose Display library link information for blocks linked to the DSP Blockset.Syntax dsp_linksdsplinks(sys)dsplinks(sys,mode)De

Seite 685

dsplib6-46dsplibPurpose Open the main DSP Blockset library.Syntax dsplibdsplib verDescription dsplib opens the current version of the main DSP Blockse

Seite 686 - Wavelet Analysis

dspstartup6-56dspstartupPurpose Configure the Simulink environment for DSP systems.Syntax dspstartupDescription dspstartup configures a number of Simu

Seite 687 - Tree Structure

dspstartup6-6See AlsoStartTime 0.0StopTime infFixedStep autoSaveTime offSaveOutput offAlgebraicLoopMsg errorInvariantConstants onRTWOptions [get_param

Seite 688

liblinks6-76liblinksPurpose Display library link information for blocks linked to the DSP Blockset.Syntax liblinksliblinks(sys)liblinks(sys,mode,lib)l

Seite 689

rebuffer_delay6-86rebuffer_delayPurpose Compute the number of samples of delay introduced by buffering and unbuffering operations.Syntax d = rebuffer_

Seite 690

3 Working with Signals3-32convert a frame-based signal to a sample-based signal is by using the Unbuffer block. See the following sections for more in

Seite 691

I-1IndexSymbolsf (linear frequency). See frequenciesfnyq (Nyquist frequency). See frequenciesFs (sample frequency or rate)See sample periodsM (frame s

Seite 692 - Wavelet Synthesis

IndexI-2analytic signal 5-27Analytic Signal block 5-27angular frequencydefined 3-5See also periodsarraysexporting matrix data to 3-73importing 3-65att

Seite 693

IndexI-3with Delay Line block 5-124with preservation of the signal 3-25with Queue block 5-353with Stack block 5-413with Triggered Delay Line block 5-4

Seite 694

IndexI-4for Triggered Signal To Workspace block 5-460controller canonical forms 5-24conventionstechnical 1-10time and frequency 3-4conventions in our

Seite 695

IndexI-5discrete sample time, defined 3-10discrete-time blocksnonsource 3-10source 3-10discrete-time signalscharacteristics 3-4defined 3-3terminology

Seite 696

IndexI-6Event-Count Comparator block 5-168events, triggeringfor N-Sample Enable block 5-325, 5-327for Sample and Hold block 5-383for Stack block 5-354

Seite 697

IndexI-7continuous-time 4-7working with 4-3Filter Designs library 4-4, 5-9designing digital filters 4-5designing filters with various filter structure

Seite 698 - Window Function

IndexI-8benefits 3-86frame-based signalsbenefits of 3-14changing frame size 3-47converting to sample-based signals 3-31, 3-60creating 3-47creating fro

Seite 699 - Window Type

IndexI-9continuous-time 4-7images, displaying matrices as 5-292importingarrays 3-65blocks for 5-10frame-based signals 3-68pages of an array 3-65sample

Seite 700

IndexI-10Math Functions 5-9Math Operations 5-9Matrices and Linear Algebra 5-9Matrix Factorizations 5-9Matrix Functions 5-9Matrix Inverses 5-9Matrix Op

Seite 701

Creating Signals3-33Creating SignalsThere are a variety of different ways to create signals using Simulink and DSP blocks. The following sections expl

Seite 702

IndexI-11transposing 5-451Matrices and Linear Algebra library 5-9Matrix 1-Norm block 5-280Matrix Concatenation block 5-14Matrix Factorizations library

Seite 703 - Yule-Walker AR Estimator

IndexI-12defined 3-4Oω (digital frequency)defined 3-5See also frequenciesΩ (angular frequency)defined 3-5See also frequenciesΩp (passband edge frequen

Seite 704

IndexI-13phase angles, unwrapping 5-474phase unwrap 5-474Polynomial Evaluation block 5-343Polynomial Functions library 5-9Polynomial Stability Test bl

Seite 705

IndexI-14RLS Adaptive Filter block 5-375RMS block 4-21, 5-379RMS, computing 5-379root-mean-square. See RMSRp (passband ripple)See passband rippleRs (s

Seite 706 - Yule-Walker Method

IndexI-15creating from vectors 5-463exporting 5-460importing 5-222, 5-388Scope block 2-7scopes 3-80scripts 6-2seconds 3-4selectingelements of a vector

Seite 707

IndexI-16single-rate models 3-92single-tasking mode 3-6, 3-91Singular Value Decomposition block 5-405sizeof a frameSee also frame sizesof a matrix 1-1

Seite 708

IndexI-17tasking latencydefined 3-91example 3-93predicting 3-92tasking modes 3-91technical conventions 1-10terminology, time and frequency 3-4, 3-5Tf

Seite 709 - Zero Pad

IndexI-18partial 3-25to a sample-based signal 3-26Uniform Decoder block 5-466Uniform Encoder block 5-470, 5-471units of time and frequency measures 3-

Seite 710

IndexI-19ZZero Pad block 3-25, 3-27, 5-552Zero-Order Hold block 3-10zero-padding 3-30, 5-337, 5-552causing unintentional rate conversions 3-31zerosins

Seite 711

3 Working with Signals3-34•“Creating Signals Using the Signal From Workspace Block” on page 3-38For information about importing signals, see the follo

Seite 712

Creating Signals3-35output check box selected, and the fourth block (DSP Constant3) has the Interpret vector parameters as 1-D check box selected.In a

Seite 713 - 6 DSP Function Reference

3 Working with Signals3-36block is selected. This means that the output is not a matrix. However, most nonsource DSP blocks interpret a length-M 1-D v

Seite 714 - Syntax dsp_links

Creating Signals3-37•Amplitude•Frequency•Phase offset•Sample time•Samples per frameIn the model below, a Sine Wave block generates a frame-based (mult

Seite 715 - Syntax dsplib

3 Working with Signals3-38See “Multichannel Signals” on page 3-11 for more information about the representation of sample-based and frame-based data.

Seite 716 - Syntax dspstartup

Creating Signals3-39For more information about creating signals, see the following sections:•“Creating Signals Using Constant Blocks” on page 3-33•“Cr

Seite 717

vi ContentsFrom Wave File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-217Histogram . . . . . . . . . . . . . . . . . .

Seite 718 - Syntax liblinks

3 Working with Signals3-40•Channel 1: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0, 0,...•Channel 2: 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0,...To create the model, sp

Seite 719

Creating Signals3-41yout = 1 1 2 1 3 0 4 0 5 1 6 1 7 0 8 0 9 1 10 1

Seite 720 - Numerics

3 Working with Signals3-42Constructing SignalsWhen you want to perform a given sequence of operations on several independent signals, it is frequently

Seite 721

Constructing Signals3-43Constructing Sample-Based Multichannel Signalsfrom Independent Sample-Based SignalsYou can combine individual sample-based sig

Seite 722

3 Working with Signals3-44Each 4-by-1 output from the Matrix Concatenation block contains one sample from each of the four input signals. All four sam

Seite 723

Constructing Signals3-45•In Signal From Workspace1, set Signal = [zeros(10,1) 5*ones(10,1)] •In Matrix Concatenation, set:-Number of inputs = 2- Conca

Seite 724

3 Working with Signals3-46frame-based signals using the Buffer block in the Buffers library (in Signal Management). The following sections explain th

Seite 725

Constructing Signals3-47To build the model, make the following parameter settings:•In Signal From Workspace, set Signal = [1:10;-1:-1:-10]' •In S

Seite 726

3 Working with Signals3-48•Output buffer size (per channel), Mo•Buffer overlap, L•Initial conditionsBuffering an N-channel (1-by-N or N-by-1) sample-b

Seite 727

Constructing Signals3-49•“Example: Buffering Frame-Based Signals with Overlap” on page 3-52•“Buffering Delay and Initial Conditions” on page 3-53Examp

Seite 728

viiPolynomial Evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-338Polynomial Stability Test . . . . . . . . . . . . . . .

Seite 729

3 Working with Signals3-50•“Importing a Multichannel Frame-Based Signal” on page 3-68Overlapping Buffers. In some cases it is useful to work with data

Seite 730

Constructing Signals3-51To build the model, define the following variable in the MATLAB workspace.A = [1 1 5 -1;2 1 5 -2;3 0 5 -3;405-4;515-5;615-6];C

Seite 731

3 Working with Signals3-52Example: Buffering Frame-Based Signals with Overlap. In the model below, a two-channel frame-based signal with frame period

Seite 732

Constructing Signals3-53Buffering Delay and Initial Conditions. In both of the previous buffering examples the input signal is delayed by a certain nu

Seite 733 - SaveTime parameter 2-13

3 Working with Signals3-54Deconstructing SignalsMultichannel signals, represented by matrices in Simulink, are frequently used in DSP models for effic

Seite 734

Deconstructing Signals3-55in the Indexing library (in Signal Management). Any subset of rows or columns can be selected for propagation to a given out

Seite 735 - StopTime parameter 2-15

3 Working with Signals3-56•Variable SelectorThe next section provides an example of using the Submatrix block to extract a portion of a multichannel s

Seite 736

Deconstructing Signals3-57Deconstructing Multichannel Frame-Based SignalsA frame-based signal with N channels and frame size M is represented by a seq

Seite 737

3 Working with Signals3-58 The following sections explain the two methods of deconstructing multichannel frame-based signals:•“Splitting a Multichanne

Seite 738

Deconstructing Signals3-59To build the model, make the following parameter settings:•In Signal From Workspace, set:-Signal = [1:10;-1:-1:-10;5*ones(1,

Kommentare zu diesen Handbüchern

Keine Kommentare