xPC Target | ![]() ![]() |
Setting Your Initial Working Directory
You should set your MATLAB working directory outside of the MATLAB root directory. The default MATLAB root directory is c:\matlab
.
If your MATLAB working directory is below or inside the MATLAB root, files created by Simulink and Real-Time Workshop are mixed with the MATLAB directories. This mixing of files could cause you file management problems.
Setting from the Desktop Icon
Your initial working directory is specified in the shortcut file you use to start MATLAB. To change this initial directory, use the following procedure:
Setting from Within MATLAB
To temporarily set your MATLAB working directory, use the following procedure:
To permanently set working directory, see Setting from the Desktop Icon.
![]() | Files on the Host PC Computer | Serial Communication | ![]() |