Plotting trajectory in Mechanics Explorer window.

Is there some method to plot the trajector of a frame of a SimMechanics model in the Mechanics Explorer window as the animation moves?

Respuestas (1)

Steve Miller
Steve Miller el 8 de Mzo. de 2018

1 voto

You cannot plot it as the trajectory is created. A workaround is to save the trajectory to a MATLAB variable and then visualize the trajectory using the Spline. An example is shown below.
You can download this example from the MATLAB Central File Exchange: Four Bar Linkage Optimization in Simscape
--Steve

1 comentario

Revised the whole library, i can't seem to find the part of the code that does that, in my case i just want to plot a single point, for example (2,2,4) on top of the block diagram i imported from solidworks, is there any way to just plot a single point in the 3d space?

Iniciar sesión para comentar.

Productos

Preguntada:

el 10 de Abr. de 2015

Comentada:

el 11 de Abr. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by