필터 지우기
필터 지우기

Simscape Multibody Spline only one Point

조회 수: 2 (최근 30일)
Tobias Panitz
Tobias Panitz 2022년 12월 6일
댓글: Steve Miller 2022년 12월 7일
Hello.
I want to plot a trajectory into the Mechanics Explorer using the Spline block.
I looked at the Steve Miller example (Four Bar Linkage Optimization in Simscape - File Exchange - MATLAB Central (mathworks.com)) and cannot figure out why it doesn't work.
I have a Matlab variable with the x and y cooordinates called anyOldSpline. Modifying End Conditions has no effect.
The result is one single marker at [0 0] which isn't even part of the spline array.
Can anyone help? Thanks in advance

채택된 답변

Steve Miller
Steve Miller 2022년 12월 6일
From what I see, it should be just fine. Normally, your spline should be nx3, but I also tried entering nx2 and still saw it plot properly both in the block dialog box and in the Mechanics Explorer.
Things to try:
  1. Have you tried changing the level of zoom? Perhaps you are too far away to see the line and can only see the markers (spheres)
  2. Is there a solid sphere with a very large radius hiding the spline?
--Steve
  댓글 수: 4
Tobias Panitz
Tobias Panitz 2022년 12월 7일
Setting the graphics type to From Geometry did the trick.
Steve Miller
Steve Miller 2022년 12월 7일
Great! I should have seen that in your dialog box setting above. Thanks for letting me know.
--Steve

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Bodies에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by