Movies and handles in Matlab
조회 수: 1 (최근 30일)
이전 댓글 표시
For my assignment I am supposed to read particle positions from 2 files (2 particles) which are moving towards each other over time, then colliding and moving back.
The question requires the particles to be given dimensions that is a shape and they should be colored the hint says we can use "fill" or a "patch" command to give the particles size and colour and the catch is that the colour of the particles should change with the change in velocity which is also to be read from files.
Does anyone have any idea how to do any of that!
댓글 수: 0
답변 (2개)
Walter Roberson
2012년 2월 20일
You can set() the FaceColor property of the patch() you create.
댓글 수: 0
Image Analyst
2012년 2월 20일
Make sure you check out my answer at your duplicate post: http://groups.google.com/group/comp.soft-sys.matlab/browse_frm/thread/eb49e4bf5d63e0d2?hl=en#
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!