www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregtransient/simvars.m
function [D,vars]= simvars(D) % DYNAMIC/SIMVARS [D,vars]= simvars(D) % interrogates the simulink model for those variables % that are required (by SIM) from the workspace % returns D with D.simVars set to match its simulink model % vars = {'var1', 'var2'} is a cell array of var name strings % Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc. vars = feval(name(D),D,'simvars'); % set field in object to match the simulink model D.simVars=vars;