>> help hdlsetuptoolpath
hdlsetuptoolpath Setup synthesis tool path and environment variables in current MATLAB session.
hdlsetuptoolpath('ToolName', TOOLNAME, 'ToolPath', TOOLPATH) adds the necessary synthesis tool folders to system path, and sets up the system environment variables for the specified synthesis tool.
Xilinx Vivado example:
hdlsetuptoolpath('ToolName', 'Xilinx Vivado', 'ToolPath', 'C:\Xilinx\Vivado\2013.4\bin\vivado.bat');
Note: Please note that Xilinx Vivado launcher for Windows is a '.bat' file.
If you are providing full path to the launcher to hdlsetuptoolpath, make sure to provide correct '.bat' file
All changes to system path or system environment variables using hdlsetuptoolpath are performed for the current MATLAB session only.
Optionally add hdlsetuptoolpath commands to the MATLAB startup.m script to execute it automatically when the MATLAB program starts.