How can i plot a cantilever beam with tip mass ?

2 ビュー (過去 30 日間)
Mallouli Marwa
Mallouli Marwa 2016 年 12 月 21 日
回答済み: KSSV 2016 年 12 月 22 日
Hi
How can i plot a cantilever beam (fixed-free end) with tip mass on matlab ?
Please help me.

回答 (1 件)

KSSV
KSSV 2016 年 12 月 22 日
clc; clear all;
%%cantilever beam with square tip mass
% cantilver dimensions
w = 0.2 ; % width
h = 1. ; % height
% make cooridnates
x = [0 w w 0] ;
y = [0 0 h h] ;
% square mass
wm = 0.6 ;
hm = 0.2 ;
% make mass coordinates
xm = [-0.2 0.4 0.4 -0.2] ;
ym = [h h h+hm h+hm] ;
% plot
figure
patch(x,y,'k') ;
hold on
patch(xm,ym,'k') ;
axis([-2 2 0 2]) ;
title('cantilver beam with square tip mass') ;
%%cantilever beam with circular mass
% cantilever dimensions
w = 0.2 ; % width
h = 1. ; % height
% make cooridnates
x = [0 w w 0] ;
y = [0 0 h h] ;
% circular mass
r = 0.2 ;
th = linspace(0,2*pi) ;
xm = 0.1+r*cos(th) ;
ym = 1.1+r*sin(th) ;
figure
patch(x,y,'k')
hold on
patch(xm,ym,'k')
axis([-2 2 0 2]) ;
title('cantilver beam with square tip mass') ;

カテゴリ

Help Center および File ExchangeAcoustics, Noise and Vibration についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by