% sample of function: sort function ocol = fsample_sort(icol) ncol = length(icol); % ?????? % ???? for idx_out = 1:ncol % ??? for idx_in = 2:ncol % ??? if col1(idx_in) > col1(idx_in-1) % ????? tmp_val = col1(idx_in-1); col1(idx_in-1) = col1(idx_in); col1(idx_in) = tmp_val; end end end ocol = icol; % ????? end % ?????