Plotting a Truss System

11 ビュー (過去 30 日間)
Benjamin
Benjamin 2014 年 10 月 28 日
回答済み: Sean de Wolski 2014 年 10 月 28 日
I was wondering how I would be able to plot data to create a truss system design: this is my code thus far.
A=1;
E=1;
N=5;
M=7;
JointX= [ 0 12 24 6 18 ];
JointY= [ 8 8 8 0 0 ];
Members= [ 1,1,2; 2,2,3; 3,1,4; 4,4,2; 5,2,5; 6,5,3; 7,4,5 ];
plot(JointX,JointY,'o') hold on
The plot nodes at the joints of the trusses, but I do not know how to connect them with lines.
Any help on how to make the lines is appreciated.

回答 (1 件)

Sean de Wolski
Sean de Wolski 2014 年 10 月 28 日
>>truss
And to see the code
>>edit truss

カテゴリ

Help Center および File ExchangeStructural Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by