minxy.m
来自「一个关于数据聚类和模式识别的程序,在生物化学,化学中因该都可以用到.希望对大家有」· M 代码 · 共 14 行
M
14 行
function [minValue, minIndex] = minXy(mat)
%minxy: Minimum of a matrix
% Usage: [minValue, minIndex] = minxy(A)
% minValue: the minimum of the matrix A
% minIndex: the 2D index of minValue in A
%
% For example:
% [minValue, minIndex]=minXy(magic(5))
% Roger Jang, 20010219, 20071009
[colMin, colMinIndex] = min(mat);
[minValue, tmp] = min(colMin);
minIndex = [colMinIndex(tmp) tmp];
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?