MATLAB: Do I receive a missing MATLAB operator error when typing “s = opengl data” in MATLAB 7.0 (R14)

dataMATLABopengl

In the documentation, an example reads:
s = opengl data
should return a structure containing the same data that is displayed when you call opengl info. However, this line will produce the following error in MATLAB 7.0 (R14):
??? s = opengl data
Error: Missing MATLAB operator.

Best Answer

This documentation error has been fixed in the documentation for Release 14 Service Pack 2 (R14SP2).
For previous releases, this is an error in the documentation for the OPENGL function. In order to assign output to a variable, the functional form of OPENGL must be used instead of the command form. The documentation should read:
s = opengl('data')