How to plot the trajectory of point in Simscape?

조회 수: 7 (최근 30일)
Man R
Man R 2021년 3월 17일
댓글: Man R 2021년 3월 17일
  1. Please load the "data_for_sim.mat" into workspace.
  2. Open "Learning_Simscape.slx" and run the simulation.
I want to plot the path traced by the end point, something like the attached image (unnamed.jpg). How to get the path in Simscape when the simulation is going on? I don't want to extract the "x" and "y" coordinates of the end joint and plot a seperate graph in Matlab.

답변 (1개)

Jonas
Jonas 2021년 3월 17일
Use the XY Graph block from Simulink.
  댓글 수: 1
Man R
Man R 2021년 3월 17일
ThanX for replying, but I don't need the trajectory on seperate window.
I need the trajectory to be shown instantaneously just as when the joint is moving.
I want to see in the simulation itself the path travelled.
I would be humbled if you could help me.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by