Preserve the state of the dynamic path on your
system by first adding folders to the path, and then removing one
of these folders.
Create a variable that points to the MATLAB® examples
folder. The path reflects the folder to your MATLAB installation.
expath =
C:\Program Files\MATLAB\R2012b\extern\examples
Add two folders to the path. The output displays these
new folders on your existing path.
DYNAMIC JAVA PATH
C:\Program Files\MATLAB\R2012b\extern\examples
http://www.example.com
Remove one folder. The path no longer contains the extern\examples
folder.
DYNAMIC JAVA PATH
http://www.example.com