I have 3 simple questions:
1: I want draw a straight line. Ok i know its easy. I can use this command:
line([0 100],[50 50],'Marker','.','LineStyle','-','LineWidth',5, 'Color',[0 1 1])
But for this command i have to know "x - Start" and "x - End" point. I just want to give only the y value my command. Matlab should draw it automatically.
2: I want to draw a rectangular like in the picture but i have just one input point -> see picture... matlab should draw it automatically. Is this possible? If not, no problem
3: I want to capture the point. Is there a possibility to do that? My Input should the coordiante point (x/y) of this point and from this point i want to determine the direction ... above right/ left, below right/left.....
x1=[0 50 75 100]
y1=[100 75 50 25]
[xb,yb] = stairs(x1,y1);
axis([0 200 0 200])