Is there an efficient way to repeat and connect copies of the same imported geometry and tie it to a user input on the number desired?
조회 수: 1 (최근 30일)
이전 댓글 표시
Let's say I have a lego piece and i want to stack a number of these based on a user input. Each piece has its solid body geometry block, frames, rigid transforms, and some joints attached to it. So I put it all in a subsystem to keep everything needed to represent one piece together.
What would be the best way to take a user input to repeat this subsystem and a joint between each subsystem a number of times and automatically update the block diagram?
댓글 수: 0
답변 (1개)
Steve Miller
2022년 2월 16일
You can use the MATLAB commands add_block() to add as many copies of the subsystem you want, and add_line() will let you connect them.
--Steve
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Bodies에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!