I have 38 nodes and 91 members in my truss. I have a column vector called X which is (38x1) containing the x coordinates of the 38 nodes. and also another column vector Z which is the same as X but has the z coordinates of the nodes. Also I created and incidence matrix C (directed graph of the truss) which is 91x38. In which the rows represent the members and the columns represent the nodes. And for each member (row in incidence matrix C) I have -1 on the smaller node that is connecting the member and 1 on the bigger node. For example, member 1 is connected between node 12 and 13. So, in matrix C. row 1 has -1 in column number 12 and 1 in column number 13 and so on. Now, I want to plot this truss. How can i do that?
I have attached the .m file of the matrices mentioned.
Thanks in advance

回答 (1 件)

KSSV
KSSV 2022 年 5 月 20 日

0 投票

3 件のコメント

Omar Morsy
Omar Morsy 2022 年 5 月 20 日
Thank you for your reply. But I do not want to solve it. I just want to plot it. Moreover, I want to write the code to plot it by myself.
I have attached the .m file of the matrices mentioned.
KSSV
KSSV 2022 年 5 月 20 日
The link also has plotting function.
Omar Morsy
Omar Morsy 2022 年 5 月 20 日
編集済み: Omar Morsy 2022 年 5 月 20 日
yes. but i will call the function to plot. I do not want to do that. I want to code the plotting function since this is only a part of my full code.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeStructural Analysis についてさらに検索

製品

リリース

R2022a

質問済み:

2022 年 5 月 19 日

編集済み:

2022 年 5 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by