Code covered by the BSD License  

Highlights from
Modeling Flexible Bodies in SimMechanics

image thumbnail
from Modeling Flexible Bodies in SimMechanics by Dallas Kennedy
Technical paper and examples on modeling flexibility in SimMechanics.

internal_plotpositiondata( datat , datay , whatIs )
function internal_plotpositiondata( datat , datay , whatIs )

% Copyright 2006, The MathWorks, Inc.

    figure;
    t = datat( : , 1 );
    y = datay( : , 2 ) * 1e3; % convert to mm
    plot( t, y , 'b-' );
    xlabel( 'Time [sec]' );
    ylabel( 'Y-Deflection [mm]' );
    title( [ 'Deflection of ' whatIs ] );

Contact us at files@mathworks.com