%% Change Current Folder Using Full and Relative Paths
% Change the current folder to the featured examples folder for MATLAB 
% R2017a, assuming that version is installed on your |C:| drive.

cd 'C:\Program Files\MATLAB\R2017a\examples\matlab_featured'

%%
% Using the full path, change the current folder from 
% |C:\Program Files\MATLAB\R2017a\examples\matlab_featured| to 
% |C:\Program Files\MATLAB\R2017a|.

cd ..\..

%%
% Use a relative path to change the current folder from 
% |C:\Program Files\MATLAB\R2017a| back to
% |C:\Program Files\MATLAB\R2017a\examples\matlab_featured|.

cd examples\matlab_featured



%% 
% Copyright 2012 The MathWorks, Inc.