image thumbnail

Better line crossings in Simulink models



Improves readability of Simulink models by appending "line steps" to lines where they cross.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

% get current block path and handle
block_s = gcb;
subsystem_h = get_param(get_param(block_s, 'Parent'), 'Handle');

% remove line crossings
betterCrossings(subsystem_h, 'off');

Contact us