Simscape Mechanics Explorer plot a dynamic line

So I am building a Simscape simulation with 3D cad objects. For visualization purposes I want to be able draw(plot) a line that represents my field of view from a 3D cad camera to a point in space. I was wondering if there is a way of ploting this line in such a way that it updates after every time interval.

回答 (2 件)

Menaka Thathsarana
Menaka Thathsarana 2023 年 5 月 5 日

1 投票

I need to plot the path traveled by the solid block within the mechnics explorer during the motion. please let me know. thanks
J Chen
J Chen 2020 年 11 月 4 日

0 投票

You can use a slender cylinder to represent the line and attached it to the camera.

1 件のコメント

fmo2641
fmo2641 2021 年 2 月 11 日
would I be able to change the length of the cylinder dynamically with a variable?

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

カテゴリ

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

質問済み:

2020 年 10 月 22 日

回答済み:

2023 年 5 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by