Code covered by the BSD License  

Highlights from
Customizing the Simulink Interface Demo

image thumbnail

Customizing the Simulink Interface Demo

by

 

This demo walks you through the steps of being able to customize the Simulink interface.

sl_customization(cm)
function sl_customization(cm)

% Disable for standalone Configuration Parameters dialog box.
cm.addDlgPreOpenFcn('Simulink.ConfigSet',@disableSolverButton)

% Disable for Configuration Parameters dialog box that appears in
% the Model Explorer.
cm.addDlgPreOpenFcn('Simulink.SolverCC',@disableSolverButton)

end

function disableSolverButton(dialogH)

% Disable the SolverType dialog box
dialogH.disableWidgets({'Simulink.SolverCC.SolverType'})

% Disable the Solver dialog box
dialogH.disableWidgets({'Simulink.SolverCC.Solver'}) 

% Hide the Start Time dialog box
dialogH.hideWidgets({'Simulink.SolverCC.StartTime'})

end

Contact us