plot an image at location x,y with a rotation angle theta

3 views (last 30 days)
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

Answers (1)

Walter Roberson
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.
  1 Comment
sam
sam on 2 Dec 2013
hi can you give me an example to start? i am looking up hgtransform but it mostly explain the math

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!