from
Find and Replace Tool
by Shanmugam Kannappan
Find & Replace the signal names in Simulink & Stateflow
|
| sl_customization(cm)
|
function sl_customization(cm)
% **********************************************************************
% File Name : sl_customization
% Author : Shanmugam Kannappan
% Description : This is the function to include the " Find and
% Replace... " option in SIMULINK edit menu & associated callbaks to call the "FndRep_GUI" GUI
%***********************************************************************
% Register custom menu function.
cm.addCustomMenuFcn('Simulink:EditMenu', @getFAndRLabel);
end
%% Find & Replace
function schemaFcns = getFAndRLabel(callbackInfo)
warning off
schemaFcns = {@FAR};
end
function schema = FAR(callbackInfo)
schema = sl_action_schema;
schema.label = 'Find and Replace...';
schema.userdata = 'Find && Replace';
schema.callback = @CallFAR;
end
function CallFAR(callbackInfo)
close all
FndRep_GUI;
end
|
|
Contact us at files@mathworks.com