Plotting a 2D Moving Image

2 views (last 30 days)
Alexander Woodbury
Alexander Woodbury on 26 Oct 2015
Edited: Jan on 26 Oct 2015
Hi,
I'm using matlab to model several particles moving in a 2d field. When using plot, I normally use plot(x,y,'rx'), which will plot these moving particles with a red x, but I want to use an image instead. I've tried using imread in place of 'rx', as well as a few other options, but matlab will not accept this. Does anyone have any solutions or tips I could use?

Answers (1)

Jan
Jan on 26 Oct 2015
Edited: Jan on 26 Oct 2015
Images are drawn by the command image . Define the XData and YData to determine the position.

Community Treasure Hunt

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

Start Hunting!