intdump
Integrate discrete-time signal
Syntax
Description
Examples
Consider an input signal with two independent channels. Each channel contains three symbols. The data in each symbol consists of four samples.
s = rng; rng(68521); n = 4; % Number of samples per symbol ch1 = randi([0 1],3*n,1); % Random binary channel ch2 = rectpulse([1 2 3]',n); % Rectangular pulses x = [ch1 ch2]; % Two-channel signal
Integrate this discrete-time signal. After integrating, each column in the signal corresponds to one channel, and each row in the signal corresponds to one symbol
y = intdump(x,n)
y = 3×2
0.5000 1.0000
0.7500 2.0000
0.2500 3.0000
rng(s);
Input Arguments
Discrete-time input signal, specified as a scalar, vector, or matrix. When the input signal is not a scalar value, it must contain k-by-n rows for a positive integer k. For these input signals, the function processes each column independently.
Data Types: double
Integration period in samples, specified as a scalar. The function resets the sum to zero after every n input samples.
Data Types: double
Output Arguments
Average of the discrete-time input signal over an integration period, returned as a scalar, vector, or matrix. If the input is a k·n-by-h matrix, the output is k-by-h.
Data Types: double
Version History
Introduced before R2006a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)