How to do distance formula
2 ビュー (過去 30 日間)
古いコメントを表示
Im trying to find the distance between 2 points on a truss and I have the length and the x and y of the nodes on the truss but what code in matlab would make this work.
0 件のコメント
回答 (1 件)
KSSV
2022 年 3 月 28 日
If(x1,y1) and (X2,y2) are two points. To get the distance use the formula:
d = sqtrt((x2-x1)^2+(y2-y1)^2) ;
3 件のコメント
参考
カテゴリ
Help Center および File Exchange で Structural Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!