MATLAB: What is the correct way to add to the include path in the S-Function Builder block in Simulink 6.1 (R14SP1)

automatic;builderdocinc_paths-functionsfunctionbuilderincludepathsimulink

In the S-Function Builder Dialog Box documentation, under the Libraries Pane section:
web([docroot,'/toolbox/simulink/sfg/sfunc_c14.html#107343'])
it says:
You can also use this field to specify search paths for libraries,
object files, header files and source files. To do this,
enter the tag LIB_PATH, INC_PATH, or SRC_PATH, respectively,
followed by a comma- or semicolon-separated list of paths.
Also, in the Setting the Include Path documentation:
web([docroot,'/toolbox/simulink/sfg/sfunc_c4.html#108671'])
it says to set the 'SfunctionBuilderIncludePath' property to add include files. Which of these is the correct way to specify paths to header files to be included in the S-function?

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). As of R14SP3, It is recommened to specify search paths for libraries, object files, header files and source files by entering the tag LIB_PATH, INC_PATH, or SRC_PATH, respectively.
For previous product releases, read below for any possible workarounds:
This has been verified as an error within the documentation for Simulink in the Building S-Functions Automatically section. The proper way to set the include path for header files is to set the 'SfunctionBuilderIncludePath' property as described in the following documentation page. Type the following in the MATLAB command window to access the page:
web([docroot,'/toolbox/simulink/sfg/sfunc_c4.html#108671'])