⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sortbycol.m

📁 利用蚁群算法和PSO算法实现MALDI_TOF数据分析
💻 M
字号:
function [y]= sortbycol(x,a)

% SORTBYCOL
% This function sorts a matrix into accending order where only one
% column becomes sorted and the other entries just swap values in order 
% to maintain their relationship with the value in the sorted column. 
%
% Habtom Ressom
% February 22, 2005
% 
%  Y = SORTBYCOL(X,COLUMN)
% 
% Inputs are: X (matrix) and COLUMN
% Output: Y - sorted matrix


[b i] = sort(x(:,a),'ascend');
y = x(i,:);
end

⌨️ 快捷键说明

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