maxind.m

来自「基于OFDM的无线宽带系统仿真It contains mainly two pa」· M 代码 · 共 20 行

M
20
字号
function ind = maxind(varargin)% DESCRIPTION ind = maxind(x,[],dim)%  As max but keeps only index.%  Calculates the index along dimension of the third argument,%  otherwise along the first non-singleton dimension.% INPUT %  x --    any matrix%  dim --  An integer > 0  indicating the dimension along which the operation will %          be performed. Inputs are the same as to max% OUTPUT %  ind --  Index along the dimension of the operation to the max value.% TRY%  maxind([2.3; 3.2]), maxind(rand(1,2,3),[],2)% SEE ALSO %  max, minind% by Magnus Almgren 990326[dum, ind] = max(varargin{:});

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?