MATLAB: Does a syntax provided in the documentation for TEXT produce an error in MATLAB 7.0.1 (R14SP1)

documentationerrorMATLABtext;xdata

In the documentation for TEXT in MATLAB 7.0.1 (R14SP1), the following syntax is used:
text('XData',x,'YData',y,'ZData',z,'String','string')
Executing this code results in an error:
??? Error using ==> text
Invalid text property: 'XData'.

Best Answer

This change has been incorporated into the documentation in Release 14 Service Pack 3 (R14SP3). For previous releases, read below for any additional information:
This has been verified as an error within the documentation for the TEXT function. The documentation should read as follows:
text is a low-level function that accepts property name/property value pairs as input arguments. However, the convenience form,
text(x,y,z,'string')
is equivalent to
text('Position',[x,y,z],'String','string')
You can specify other properties only as property name/property value pairs. See the text property list at the end of this page for a description of each property. You can specify properties as property name/property value pairs, structure arrays, and cell arrays (see the set and get reference pages for examples of how to specify these data types).
The documentation for the TEXT function can be found by entering the following in the MATLAB command line:
doc text