samesort.m

来自「MDPSAS工具箱是马里兰大学开发的」· M 代码 · 共 43 行

M
43
字号
function[B,I] = sort(A)%  sort.m Sort a vector of wafermap objects into groups with identical%         parameter values. Called as%%         [B,I] = sort(A)%      % INPUT PARAMETERS%%         A : a vector of wafermap objects%% OUTPUT PARAMETERS%%         B : A vector wafermap objects consisting of%             the average maps of wafers with identical%             parameter sets%         I : A cell array containing the indicies of%             wafers with identical parameter sets% Copyright (c) by Raymond A. Adomaitis, 1998-2006n = 0;u = ones(size(A));for i = 1:length(A)    if u(i) ~= 0        n = n+1;        pn = get(A(i),'param');        indmatch = i;        u(i) = 0;        for j = i+1:length(A)            if compare(pn,get(A(j),'param'))                indmatch = [indmatch j];                u(j) = 0;            end        end        I{n} = indmatch;        B(n) = avgwafers(A(indmatch));    endend

⌨️ 快捷键说明

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