i am draw two plot on image using impoint.i want to move point of any plot using mouse. this time i am capable to move second plot point using mouse but not move first plot point. over requirement how to move both plot and get update position

3 views (last 30 days)
i am draw two plot on image using impoint function.i want to move point of any plot using mouse. this time i am capable to move second plot point using mouse but not move first plot point. over requirement how to move both plot and get update position. when i move any plot point i have get all point update point position corresponding to plots. [xi{kk},yi{kk},but1]= myginput(1,'crosshair'); if but1 ==3 for i1=1:kk-1 pos1{i1}=getPosition(handles.h{i1}); % set(handles.h{i1},'hittest','off');
end
[Q]=hobbysplines(pos1);
jj2=1;
size(Q);
for jj=1:size(Q,2)
for jj1=1:size(Q{jj})
Q2=Q{jj};
Q2a(jj2,:)=Q2(jj1,:);
jj2=jj2+1;
end
end
% axis(handles.axes1);
handles.lh=plot(Q2a(:,1),Q2a(:,2), 'r');
ex1=1;
break
end
handles.h{kk} = impoint2(gca,xi{kk},yi{kk});
setColor(handles.h{kk},'red');
kk=kk+1;
i have enclosed image.

Answers (0)

Community Treasure Hunt

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

Start Hunting!