www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregMdlGui/@modelpane/setModelInformation.m
function setModelInformation(obj, m, mname) %SETMODELINFORMATION Set new model details % % SETMODELINFORMATION(OBJ, M, MNAME) sets a new model, M and a new model % name, MNAME. The modelpane is then refreshed. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. % Set new data without firing listeners set(obj.hModelPaneList, 'Enabled', 'off'); obj.Model = m; obj.ModelName = mname; set(obj.hModelPaneList, 'Enabled', 'on'); % Refresh display obj.doModel;