Frequence of the values in a vector or matrix (original) (raw)
Scilab 5.3.3
- Scilab help
- Statistics
- cdfbet
- cdfbin
- cdfchi
- cdfchn
- cdff
- cdffnc
- cdfgam
- cdfnbn
- cdfnor
- cdfpoi
- cdft
- center
- wcenter
- cmoment
- correl
- covar
- ftest
- ftuneq
- geomean
- harmean
- iqr
- mad
- mean
- meanf
- median
- moment
- msd
- mvvacov
- nancumsum
- nand2mean
- nanmax
- nanmean
- nanmeanf
- nanmedian
- nanmin
- nanstdev
- nansum
- nfreq
- pca
- perctl
- princomp
- quart
- regress
- sample
- samplef
- samwr
- show_pca
- st_deviation
- stdevf
- strange
- tabul
- thrownan
- trimmean
- variance
- variancef
Please note that the recommended version of Scilab is 2026.0.1. This page might be outdated.
However, this page did not exist in the previous stable version.
Scilab help >> Statistics > nfreq
nfreq
frequence of the values in a vector or matrix
Calling Sequence
Arguments
x
real or complex vector or matrix
Description
Frequence of the values in a real or complex vector or a real or complex matrix x.
For a real or complex vector or a real or complex matrixx, m=freq(x) returns in the first column of the size(x,'*')x2 matrix m the values ofx and in the second column of this matrix the frequences of the corresponding values.
Note that the tabul function is more efficient, applies also to vector of strings and returns a sorted m.
Examples
x=[2 8 0 3 7 6 8 7 9 1] m=nfreq(x)
See Also
- tabul — frequency of values of a matrix or vector
- dsearch — search in ordered sets
- histplot — plot a histogram