www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@xregdesign/safechange.m

    function des = safechange(des,f)
%SAFECHANGE provides a convenience function to change design properties
%without changing the type
%
% des = safechange(des,f)
%   f is a function handle that does the real work and has the form
%       des= f(des);

%  Copyright 2007 The MathWorks, Inc.

[tp,info] = DesignType(des);
des = f(des);
des= DesignType(des,tp,info);