MATLAB: How to draw braille dots(3×2) (1 cell) with given dimensions

braille cell pattern

the base diameter of dot should be 0.144 cm(1.44mm). the height of dot should be .04cm(.48mm). distance between center to center of adjacent dots is .234cm(2.55mm). distance between one cell to another in horizontal side is 6.64mm. [sample image i have uploaded]

Best Answer

As you have all the dimensions...get the center of each dot and radius is known. Once radius and center known you can draw a circle/ dot like below:
th = linspace(0,2*pi) ;
c = [0 0] ; % center of circle
r = 0.5 ; % radius of circle
x = c(1)+r*cos(th) ;
y = c(2)+r*sin(th) ;
patch(x,y,'k')
Or instead of plotting a circle, you can make use of marker '.' in the plot. If you '.' you have to be careful about size of figure and it's units etc.
Related Question