The pattern is
- 'Default'
- The value of the object's Type property
- The name of the property you want to set.
So, if we check the Type property of an annotation:
h = annotation('textarrow');
h.Type
We get:
And if we look for the property, we find that its name is 'Interpreter'. Therefore, we want to do this:
set(groot,'DefaultTextarrowshapeInterpreter','latex')
And then we can do this:
annotation('textarrow', ...
'String','$$ \int_{0}^{2} x^2\sin(x) dx $$', ...
'FontSize',12)
And we get this: