Animation in matlab
조회 수: 3 (최근 30일)
이전 댓글 표시
I have an assignment to do which includes animation a stick man (stick figure) such that it can move its hands and legs and possibly also change the colour of it face. Is there a possibility to do this? Thanks for any help to be provided.
댓글 수: 0
채택된 답변
Sean de Wolski
2012년 2월 27일
Yes. Create a bunch of lines using line(). Then modify their xdata and ydata properties to reflect new positions. You could do this with a for-loop and a pause() or even better with a timer().
댓글 수: 6
Image Analyst
2015년 1월 13일
In R2014b there is an animatedLine function:
Create an animated line with two initial points.
x = [1 2];
y = [1 2];
h = animatedline(x,y);
Add points to the line in a loop to create an animation of a growing line. See Using animatedline Objects for more information.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Animation에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!