source location (X,Y) in a vector in MATLAB is assumed and you want to show the location of the source at each iteration as presented in video below:



MATLAB code:
%---------------------------------------------------
figure(5);
axes();
hold on;

img = imread('BACKGOURND.png'); %# Load a sample image

hold on; %# Add to the plot

image([X1 X2],[Y1 Y2],img); %# Plot the image

plot(Xl_t(1,i),Xl_t(2,i),'Xr','MarkerSize',20) %Xl_t --> the mentioned vector

for i = 540:1:1000;

if (i == 540)

pause(15);

end
%-----------------------------