www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregmodel/yinvdiff.m

    function [dy,sdy] = yinvdiff(m,y)
%YINFDIFF derivative of y-inverse transformation wrt y
%
% [dy,sdy] = yinvdiff(m,y)
%  not that y should be untransformed - that is the EvalModel(m,y) and not
%  eval(m,x)

%  Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc.

out = m.Output;
if HasTransform(out)
    y = out.doTransform(y);
    dy = out.doDiffInv(y);
    if nargout>1
        sdy =out.TransformLabel('y','diffinv');
    end
else
    dy = ones(size(y));
    sdy = '';
end