function [X,gmad] = mamadnorm(X,varargin)
%MAMADNORM normalizes microarray data by median absolute deviation (MAD).
%
%   THIS FUNCTION IS OBSOLETE. USE MANORM INSTEAD.
%
%   XNORM = MAMADNORM(X) divides the values in each column of X by the
%   median absolute deviation of the column. 
%
%   [XNORM, XMAD] = MAMADNORM(X) returns the median absolute deviation.
%
%   MAMEANNORM(...,'LOGDATA',TRUE) is used when working with log ratio data
%   in which case the mean of each column is subtracted from the values in
%   the columns.
%
%   MAMADNORM(...,'GLOBAL',true) divides the values in the data set by the
%   global median absolute deviation, as opposed to the median absolute
%   deviation of each column of the data.
%
%   Examples:
%
% 		maStruct = gprread('mouse_a1wt.gpr');
% 		Red = maStruct.Data(:,4);
% 		Green = maStruct.Data(:,13);
%       maloglog(Red,Green,'factorlines',true)
%       figure
%       normRed = mamadnorm(Red);
%       normGreen = mamadnorm(Green);
%       maloglog(normRed,normGreen,'title','Normalized','factorlines',true)
%
%   See also MALOWESS, MANORM.

% Copyright 2003-2004 The MathWorks, Inc.
% $Revision: 1.6.4.4 $   $Date: 2004/12/24 20:44:25 $

warning('Bioinfo:MAMADNORM:Obsolete',...
    'MAMADNORM is obsolete. Use MANORM instead.');

[X,gmad] = manorm(X,'method','mad',varargin{:});