www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregarx/modelactions.m
function actions = modelactions(m,ms) %modelactions - model actions specific to model type % actions= modelactions(m,ms) % Copyright 2000-2015 The MathWorks, Inc. and Ford Global Technologies, Inc. StaticActions = modelactions( get( m, 'StaticModel' ), ms); actions = [StaticActions mbcgui.actions.StatefulAction(@(h,evt) i_refit(ms),'&Update Model Fit','Update model fit','refresh.bmp') mbcgui.actions.StatefulAction(@(h,evt) i_DynamicEvaluation(ms),'&Dynamic Evaluation','Dynamic evaluation','') StaticActions]; %------------------------------------------------------------------------------| function i_refit( ms ) % src is the menu handle % evt is empty busy(ms); refit(ms) idle(ms); %------------------------------------------------------------------------------| function i_DynamicEvaluation(ms) % Get the model development object and model from model browser mdev = ms.ModelDev; % Get the candidate validation data sets from the project pointer % This returns an array of pointers to sweepsets DataPtrs = dataptrs( info(root(mdev)) ); figh = DynamicEvaluation(ms.Model, mdev, DataPtrs); registerSubFigure(ms, figh ); %------------------------------------------------------------------------------| % EOF %------------------------------------------------------------------------------|