frequency.m
来自「用提升方法实现小波任意级数分解」· M 代码 · 共 22 行
M
22 行
function f = frequency(vector)%FREQUENCY Simbols frequencies% For vectors, FREQUENCY(X) returns a [1x256] sized double array with frequencies% of simbols 0-255.%% For matrices, X(:) is used as input.%% Input must be of uint8 type, while the output is a double array.% $Author: Giuseppe Ridino' $% $Revision: 1.1 $ $Date: 02-Jul-2004 16:30:00 $% ensure to handle uint8 input vectorif ~isa(vector,'uint8'), error('input argument must be a uint8 vector')end% create ff = histc(vector(:), 0:255); f = f(:)'/sum(f); % always make a row of it
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?