File: median.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (33 lines) | stat: -rw-r--r-- 871 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
median            Scilab Group            Scilab Function            median
NAME
   median - median (row median, column median) of vector/matrix entries
  
CALLING SEQUENCE
 y=median(x)
 y=median(x,'r')
 y=median(x,'c')
PARAMETERS
 x          : real vector or matrix 
            
 y          : scalar or vector
            
DESCRIPTION
   For a vector or a matrix x, y=median(x)  returns in the scalar y the
  median of all the entries of x.
  
   y=median(x,'r') (or, equivalently, y=median(x,1)) is the rowwise median.
  It returns in each  entry of the column vector y the median of each row
  of x.
  
    y=median(x,'c') (or, equivalently, y=median(x,2)) is the columnwise
  median. It returns in each entry of the row vector  y the median of each
  column  of x.
  
EXAMPLE
 A=[1,2,10;7,7.1,7.01];
 median(A)
 median(A,'r')
 median(A,'c')
SEE ALSO
   sum, mean