I have a picture that is plotted inside a figure in Matlab:
pic=imread('mypic.bmp');
figure(1)
h=image([1 1.2],fliplr([1 1.2],pic)
Now I want to move this figure to other locations inside the figure, with the method that is described in this question:
for i=2:3
indices=[i i+.2];
set(h,'?1',indices,'?2',fliplr(indices))
end
What do I have to fill in instead of ?1
and ?2
? In the referred question, where the plot
command is considered, they use XData
and YData
.