Matlab經常使用函數:mode(X)

function [M,F,C] = mode(x,dim)html 一、功能 返回向量、數組或數據域中出現頻率最多的數值。數組 Mode, or most frequent value in a sample. spa 二、語法  1) M = mode(X)  %計算向量或數組X中出現次數最多的數值;對於矩陣則返回每列元素中頻率最多的元素。code  2) [M,F]=mode(X)  %M記
相關文章
相關標籤/搜索