首先确定交点的坐标,例如看到有2个交点[x,y]=ginput(2)%光标移到交点处点击鼠标,获得两个交点坐标str=sprintf("(%f,%f)",x,y);text(x,y,str); %在图上标记
str=sprintf("(%f,%f)",x,y);text(x,y,str);