MATLAB: How to avoid publishing the code into the HTML file in MATLAB 7.0 (R14)

codehtmlMATLABpreferencepublishview

I am trying to publish the results of my code in a HTML file using the PUBLISH function. I set the "showCode" option to "false", but I still see my code in the HTML file:
opts.showCode='false'
publish('foo',opts)

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:
The "showCode" option for PUBLISH requires a logical variable, either true/false or 1/0, and not a string. For example,
opts.showCode = false
publish('foo',opts)