Patch moving with keyboard
2 visualizzazioni (ultimi 30 giorni)
Hi all, I have a little problem. I have created the patch object in a figure with an axes and then i have placed it at some location using the transformation. Now i want to move it using the arrows or an any other button on my keyboard.
Here is an example:
function = main()
function = patch()
handle=patch(x,y,[0 0 0]);
T=makehgtform('translate', [Tx 0 0]);
AxT=hgtransform('parent', gca, 'matrix', M);
function = KeboardMoving(hobject, event)
Each press on key i would like to move it left or right. thanks for help.