MATLAB SIGNAL PROCESSING BLOCKSET 7 Guida Utente Pagina 464

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 738
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 463
1 2 ... 459 460 461 462 463 464 465 466 467 468 469 ... 737 738

Commenti su questo manuale

Nessun commento