plot an image at location x,y with a rotation angle theta
3 views (last 30 days)
Show older comments
Hi,
I am working on a simulation where I want to see where my boat is heading as time elapse. I want to draw a image called boat.jpg at location X,Y on a plot and would like to draw it facing a heading direction, eg 0-360 degree. I am not sure if I can do this in Matlab? Please help, picture is attached.
Thanks
0 Comments
Answers (1)
Walter Roberson
on 2 Dec 2013
Make the image a child of a hgtransformgroup and set its rotation / translation matrix to adjust its direction and movement.
See Also
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!