New and need to represent (1,1) using simulink?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello everyone,
I am new to the world of simulation and i'm trying to get my 'foot' through the door. I have been creating little models here and there but nothing major. I want to challenge myself and do something more complex.
I thought about simulating a car moving on an X,Y plane and wnated to see its 'location' changes over time.
the first issue I faced is how to represent both X,Y in simulink? say I need to make the intial location of the object/ car to be (0,0) then moves over time based on the configs of a PID then I would need to visually see what happens after like 10 second. Where is the new location of the car be?
How can I do that? Which blocks would allow me to do that?
Thanks again!
댓글 수: 0
답변 (1개)
Animesh
2023년 8월 21일
Hello Ahmed,
You can use the XY Graph block in Simulink to visualize the movement of a car on an X, Y plane. The XY Graph block is an alternative configuration of the Record block that plots two input signals on an XY plot. The first input port provides the x data for the XY plot, and the second input port provides the y data. You can use this block to plot the X and Y coordinates of your car over time.
You can also use a combination of other blocks to simulate the movement of your car based on the configurations of a PID controller. For example, you can use a PID Controller block to control the movement of your car and feed its output into an Integrator block to obtain the position of your car over time. You can then feed the output of the Integrator block into the XY Graph block to visualize the movement of your car on an X, Y plane.
To read more about XY Graph: - https://www.mathworks.com/help/simulink/ug/plot-circle-with-xy-graph.html
Thanks,
Animesh Jha
참고 항목
카테고리
Help Center 및 File Exchange에서 PID Controller Tuning에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!