Changing Data Object Wizard - default package

1 view (last 30 days)
Hello all,
I`m using Matlab 2012b and 2011a and I have a script that changes the default package for data objects from Simulink to Custom .
The script only works correct for 2011a .
For 2012b I can change and add more user packages and change the order between them, BUT the first and default package is Simulink and this does not change.
Any idea is appreciated, thanks in advance !
function sl_customization(cm)
% Get default (factory) customizations
hObj = cm.slDataObjectCustomizer;
% Add user packages
hObj.addUserPackage({'custom'});
% Move custom to top of list instead of Simulink
hObj.moveUserPackageToTop('custom');

Answers (0)

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!