www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conswitch/loadobj.m
function c = loadobj(c) %LOADOBJ % Copyright 2007 The MathWorks, Inc. if isstruct(c) f = fieldnames(c); cnew = conswitch; for i=1:length(f) prop = f{i}; cnew.(prop) = c.(prop); end c = cnew; end