how to drew vertical black line?

I want to drew vertical black line on the middle of 200x200 rectangle?

 Accepted Answer

Use the line command.
line([1,1],[0,2],'Color','k')
draws a black line from (1,0) to (1,2), for example.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!