Re: how to draw a line in matlab
aztroboy, here's a simple letter 'J'. You can expand it into more letters.
plot([5 5 4 3 2],[8 2 1 1 2],'k', [4 6],[8 8],'k'); xlim([0 10]); ylim([0 10]);
thanks a lot faztroboy
by your answer I did this
xlim([5 100]); ylim([5 100]); ------:arrow:----- Draw (x,y) axis
plot([5 5 4 3 2],[8 2 1 1 2],'k', [4 6],[8 8],'k'); xlim([0 10]); ylim([0 10]); --:arrow:-- Draw (J) letter --- k is ( black color of line )
plot([5 5 4 3 2],[8 2 1 1 2],'R', [4 6],[8 8],'R'); xlim([0 10]); ylim([0 10]);---:arrow:--- Draw (J) letter --- R is ( Red color of line )
plot([4 6],[8 8],'R'); xlim([0 10]); ylim([0 10]); --:arrow:---- Draw strait line ----- Red color
plot([2 9],[5 5],'K',[2 9],[4 4],'R'); xlim([0 10]); ylim([0 10]); --:arrow:------ Draw 2 straight lines ----- Red & black color
plot([4 8],[7 7],'K',[4 4],[3 7],'R',[4 8],[3 3],[8 8],[3 7],'R'); xlim([0 10]); ylim([0 10]); --:arrow:-- Draw square