www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@mdevmlerf/addoutliers.m
function [mdev,OK]= addoutliers(mdev,ind) %ADDOUTLIERS % Copyright 2000-2008 The MathWorks, Inc. and Ford Global Technologies, Inc. OK=1; p= Parent(mdev); if ~isempty(ind) && ~p.IsLinearised [X,Y,DataOK]= FitData(mdev); % data already not flagged bad for Y f= find(DataOK); % only 'good' data is displayed in RegPlots % so index to outliers from RegPlot (ud.index) needs to be % referenced to good data index, NewOutliers= f(ind); mldev= p.mle_ApplyOutliers(rfindex(mdev),NewOutliers); mldev=status(mldev,0); if isBrowserProject(mdev) doDrawText(MBrowser); end end