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'.
documentationerrorMATLABtext;xdata
text('XData',x,'YData',y,'ZData',z,'String','string')
??? Error using ==> text Invalid text property: 'XData'.
Best Answer