In Windows, environment variables can be accessed from “Advanced system settings” on the left side of the “System” control panel. How you access and edit the environment variables depends on the version of Windows you are using.
Windows 11 (Also Windows 10 and Windows 8.1)
- Right-click on the Start Button
- Select “System” from the context menu.
- Click “Advanced system settings”
- Go to the “Advanced” tab
- Click “Environment Variables…”
- Click variable called “Path” and click “Edit…”
- Click “New”
- Enter the path to the folder containing the binary you want on your PATH. For example, to add MATLAB R2016b, add:
C:\Program Files\MATLAB\R2016b\bin
Click “OK” to save the changes to your variables and restart your computer for the changes to take effect.
Windows 7 (Also Windows Vista)
- Right-click on the My Computer icon on the right side of the Start Menu.
- Click “Properties” from the context menu.
- Click “Advanced system settings”
- Go to the “Advanced” tab
- Click “Environment Variables…”
- Click variable called “Path” and click “Edit…”
- Add the path to the folder containing the binary to the end of the value in your PATH variable. For example, to add MATLAB R2016b, add this to the end of the text already in the PATH variable:
;C:\Program Files\MATLAB\R2016b\bin
Click “OK” to save the changes to your variables and restart your computer for the changes to take effect.