MATLAB Answers

How can I visualize the trajectory of a moving frame when doing the Simscape Multibody simulation?

30 views (last 30 days)
zy han
zy han on 18 May 2018
Edited: zy han on 18 May 2018
I have finished a simulation in Simscape Multibody, but I meet a trouble when showing the trajectory of a moving body's frame in the "Mechanics Explorer" window.
I have also tried the function plot3 and comet3, however, it can only show the timeseries data in the workspace.
Is there a way to show the trajectory in the "Mechanics Explorer" window? or other way to achieve the same purpose.

  0 Comments

Sign in to comment.

Accepted Answer

zy han
zy han on 18 May 2018
Edited: zy han on 18 May 2018
Thanks a lot, I have finished it by refer the question and Steve Miller's work Four Bar Linkage Optimization in Simscape
It is solved by insert a "Spline" block, good solution to solve the problem.

  0 Comments

Sign in to comment.

More Answers (1)

sloppydisk
sloppydisk on 18 May 2018
Simply plot the data after exporting to workspace:
plot(xout.data, yout.data)

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by