model of a point in the space
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello, With Simulink, how can I modelize a point in the space and get back (in outputs of the block), the 3 coordinates, x, y, z of this point. Thanks for answers
댓글 수: 0
채택된 답변
Sebastian Castro
2015년 7월 30일
편집: Sebastian Castro
2015년 7월 30일
I would start with good old Newton's 2nd Law: F = m*a
For each coordinate (X, Y, and Z), you can implement this relationship with two Integrator blocks; one that integrates from acceleration to speed, and one right after it which integrates from speed to position.
What you put into the input (the forces, or the "F" part) is up to you.
For reference, I would start by looking at the Bouncing Ball example for a few different ways you can model the 1-D system. Then, you can extend that to 3-D.
- Sebastian
댓글 수: 3
Sebastian Castro
2015년 7월 31일
Well, the gravity could be replaced with any other forces... whether they be zero, or components (sine-cosine) of gravity, or anything else. The left side of the first integrator is the sum of all input forces to the system.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!