So i have drawn this figure as attached here and have used this code :
xlim([0 250]);
ylim([0 200]);
x = rectangle('Position',[40 130 70 40])
y = rectangle('Position',[120 10 80 25])
imshow(y).
Now can you please suggect me how to make the same figure using a 256x256 matrix ? How can i make lines using the matrix at some particular pixels which will create the same figure as shown.