Code covered by the BSD License  

Highlights from
Modeling Flexible Bodies in SimMechanics

image thumbnail

Modeling Flexible Bodies in SimMechanics

by

 

08 May 2006 (Updated )

Technical paper and examples on modeling flexibility in SimMechanics.

Editor's Notes:

The download problems reported in the comments have been addressed. The zip file now downloads properly.

paper_generate_lump_plots
function paper_generate_lump_plots
% PAPER_GENERATE_LUMP_PLOTS  Generate plots for flexible-body paper
%
% PAPER_GENERATE_LUMP_PLOTS will simulate the lumped-parameter models referenced in the SimMechanics
% flexible-body white paper, and will then plot and save the results.

% Copyright 2006, The MathWorks, Inc.

[t,x,y]=sim('lump_cantilever_load');
paper_plot_position_data(t,y,'Signal-Loaded Cantilever (lumped-parameter model)' , 5 , 0.3 );
set(gca,'XLim',[0 0.6]);
paperfig_dosave( 'paperfig_loadsignalresponse_lumped' );

[t,x,y]=sim('lump_cantilever_body');
paper_plot_position_data(t,y,'Body-Loaded Cantilever (lumped-parameter model)' , 10 , [] )
set(gca,'XLim',[0 10]);
paperfig_dosave( 'paperfig_loadbodyresponse_lumped' );

[t,x,y]=sim('lump_cantilever_body_spring');
paper_plot_position_data(t,y,'Body-Loaded Spring-Mounted Cantilever (lumped-parameter model)', 10 , [] )
set(gca,'XLim',[0 10]);
paperfig_dosave( 'paperfig_loadbodyspringresponse_lumped' );

Contact us