MATLAB: Drawing a line lineplot I want to draw a line like this http://www.flickr.com/photos/75243597@N03/6780413880/ where c=0; The line have to pass through [5 2]' and [0 0]' points. Best Answer line([0 5],[0 2]) Related SolutionsMATLAB: How to drew vertical black line Use the line command.line([1,1],[0,2],'Color','k')draws a black line from (1,0) to (1,2), for example. MATLAB: How to draw x=2 line using plot command plot([2 2], [0 10])%or maybe you wantplot([2 2],ylim) Related Question
Best Answer