Answered Creating shapes in binary images
you can insert a shape in a image using the function 'insertShape'.
e.g.
RGB = insertShape(I,shape,position);
Answered join close lines in one thicker
why matlab did not have functions to draw and burn basic shapes (line, triange,..) in image.i did not find any file exchange als...