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

  • 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 463
Median
5-307
5Median
Purpose Find the median value of an input.
Library Statistics
Description The Median block computes the median value of each column in an M-by-N
input matrix.
y = median(u) % Equivalent MATLAB code
For 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 output at each sample time,
y, is a sample-based 1-by-N vector containing
the median value for each column in
u.
When M is odd, the block sorts the column elements by value, and outputs the
central row of the sorted matrix.
s = sort(u);
y = s((M+1)/2,:)
When M is even, the block sorts the column elements by value, and outputs the
average of the two central rows in the sorted matrix.
s = sort(u);
y = mean([s(M/2,:);s(M/2+1,:)])
Complex inputs are sorted by magnitude, and the real and imaginary
components are averaged independently (for even M).
Dialog Box
Supported
Data Types
Double-precision floating point
Vue de la page 463
1 2 ... 459 460 461 462 463 464 465 466 467 468 469 ... 737 738

Commentaires sur ces manuels

Pas de commentaire