MATLAB SIGNAL PROCESSING BLOCKSET 7 Guide de l'utilisateur Page 273

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 738
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 272
Cumulative Sum
5-116
5Cumulative Sum
Purpose Compute the cumulative sum of row or column elements.
Library Math Functions / Math Operations
Description The Cumulative Sum block computes the cumulative sum of the row or column
elements in the M-by-N input matrix
u.
Columnwise Summing
When the Cumulative Sum along parameter is set to Columns, the block
computes the cumulative sum of the column elements.
y = cumsum(u) % Equivalent MATLAB code
The output is an M-by-N matrix whose jth column has elements
The frame status of the output is the same as the input. For sample-based
inputs, the first row of each successive output is the same as that of the
corresponding input. For convenience, length-M 1-D vector inputs are treated
as M-by-1 column vectors for column-wise summation, and the output is a
length-M 1-D vector.
For frame-based inputs, the first row of the first output is the same as that of
the first input, and the first row of each subsequent output contains the sum of
the first row of the current input (time t) and the last row of the previous output
(time t-T
f
).
Rowwise Summing
When the Cumulative Sum along parameter is set to Rows, the block
computes the cumulative sum of the row elements.
y = cumsum(u,2) % Equivalent MATLAB code
The output is an M-by-N matrix whose ith row has elements
y
ij,
u
kj,
1 iM≤≤
k 1=
i
=
y
1 j,
t() u
1 j,
t() y
Mj,
tT
f
()+=
Vue de la page 272
1 2 ... 268 269 270 271 272 273 274 275 276 277 278 ... 737 738

Commentaires sur ces manuels

Pas de commentaire