MATLAB: Do I receive an error when performing the example in the SETOPTIONS documentation in the Control Systems Toolbox 6.2 (R14SP2)

Control System Toolboxsetoptions

The documentation for the SETOPTIONS function contains an example that starts with the following lines of code:
sys=tf(1,[1 1]);
h-bodeplot(sys) % Create a Bode plot with plot handle h.
This produces an error because h is undefined.

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:
There is an error in the Control Systems Toolbox 6.2 (R14SP2) documentation.
The example should start with the following code:
sys=tf(1,[1 1]);
h=bodeplot(sys) % Create a Bode plot with plot handle h.