MATLAB: How to drew vertical black line

drew vertical black line

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

Best Answer

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