from
Align blocks tool
by Tijil Thomas
This is a very useful tool to align blocks and distribute the distance between the blocks.
|
| sl_customization(cm)
|
function sl_customization(cm)
% Author : Tijil Thomas
%% Register custom menu function.
cm.addCustomMenuFcn('Simulink:ToolsMenu', @getMyMenuItems);
end
%% Define the custom menu function.
function schemaFcns = getMyMenuItems(callbackInfo)
schemaFcns = {@getItem1};
end
%% Define the schema function for first menu item.
function schema = getItem1(callbackInfo)
schema = sl_action_schema;
schema.label = 'AlignBlocks';
schema.userdata = 'item one';
schema.callback = @myCallback1;
end
function myCallback1(callbackInfo)
AlignBlocks;
end
|
|
Contact us at files@mathworks.com