How to draw a curved rectangle matrix with given two points?
Assume, two points given:
a = [1,0.5];
b = [1,3.5];
And the created curved rectangle should be like this:
But the point is, all I finally want, is an image matrix return, not just to plot this figure using rectangle(); on screen.
ps: in a binary scale.