So basically I have a GUI and i have an axis plot.
I want my graph to have an image which moves up and down when i click the calculate button. Would any one give me direction on how to go on about this? Using position command? Note that the figure corresponds to movement of a control system with a time response graph. Hence as system becomes stable the picture movement would come to a halt (certain position). So far my image do does not even appear on the axes!Any help would be greatly appreciated on matlab!
for frame=1:1:length(t)
if stop ~= 1
axes(handles.axes5)
cla;
hold on;
if y(frame)<=0
axes(handles.axes5,'position',[3,y(frame)+0.001,3,((y(frame)+1.0000000001))]);
imshow('ball.jpg','position',[3,0.001,3,(1.00000000001)]);
else
axes(handles.axes5,'position',[3,y(frame)+0.001,3,((y(frame)+1.0000000001))]);
imshow('ball.jpg','position',[3,y(frame)+0.001,3,((y(frame)+1.0000000001))]);
end