File Exchange

image thumbnail

Curly brace annotation

version 1.0 (1.9 KB) by

Draws curly brace on current figure



View License

DRAWBRACE Draw curly brace on current figure
   DRAWBRACE([X1, Y1], [X2, Y2]) draws a curly brace from the point [X1,
   Y1] to the point [X2, Y2]

   DRAWBRACE([X1,Y1], [X2,Y2], W) draws a brace using the brace width W.

   DRAWBRACE(..., 'Param1', 'Value1', 'Param2', 'Value2') draws a brace
   using the LineSeries property values specified by 'Param1'/'Value1',
   'Param2'/'Value2', ... .

   H = DRAWBRACE(...) returns the LineSeries handle to the brace.

      H = drawbrace([0 0], [1 1], 20, 'Color', 'k')

Comments and Ratings (6)

Mihai Nechita


i like it! i guess it wouldn't be hard to do it, but it would be nice to have a property if the curly bracket looks upward or downward.


Very useful!


Monica (view profile)

Hannu K

Thanks for the nice submission.

Add the possibility to give z-coordinates as well to produce 3d braces and I'll upgrade to 5 stars.


hu (view profile)


I was using your drawbrace function and it is very useful, can you also implement a parameter to control the height of the curly brace?


MATLAB Release
MATLAB 7.12 (R2011a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video