No BSD License  

Highlights from
Stateflow Alignment Tool

image thumbnail

Stateflow Alignment Tool

by

 

06 Jan 2005 (Updated )

Stateflowalign is a simple GUI to align and modify graphical stateflow objects.

cs
function cs
%CS copy the size of stateflow objects
% the size of the last selected stateflow object is copied to all other
% selected objects

% get all selected stateflow objects
sfo=gcsfo;

if length(sfo)<2
    error('You must select at least two objects!');
end

% read the position of the last selected object
position=sfo(end).Position;

for i=1:(length(sfo)-1)
    % read position of the current object
    currPos=sfo(i).Position;
    % set position to new width and hight
    currPos(3:4)=position(3:4);
    % copy to stateflow object
    sfo(i).Position=currPos;
end

Contact us