real time point tracking and confining it within a predefined boundary

hi everyone, i need a matlab code to track any point in a 2 dimensional plane and not allowing it to cross a predefined boundary. The boundary,for example, can be defined by x and y coordinates which may be predefined or entered by the user. The point is to move randomly and stay inside that boundary.
Thanks

댓글 수: 1

http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

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

답변 (1개)

This forum won't just send you MATLAB code without you showing us what you've done so far (as this sounds a bit like homework). To get you started, though, check out
doc inpolygon

카테고리

도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기

질문:

2012년 3월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by