Project Manager

Open/close m-files and change the current path with one click, across your different projects.
1.6K Downloads
Updated 8 Jan 2013

View License

It is updated for R2011a and tested for Windows and Mac. For ease of use, I wrote an installer. (Installer is not provided for older Matlabs. Sorry... If your Matlab version is 2010b or earlier, please manually install the old version.)

Installation:

>> pm('install')

After installation, you'll see a project manager menu added to the shortcuts category in the Matlab 'start' button as shown in the screenshot.

A shortcut for your current project is automatically added by installation.

When you make a new project, save it first, and then use the "Add a shortcut for the proj" to make a shortcut for it. (Note: you should save your project first BEFORE making a shortcut!)

Enjoy~!

===================================

Note 1.
The shortcut generated by "Add a shortcut for the proj" has a simple callback script:

pm('save_project')
pm('open_project', 'path to your project file.mat')

pm does not save your current project. But if you want that functionality, you can do it yourself very easily by modifying the shortcut like:

save workspace
clear
pm('save_project')
pm('open_project', 'you project file.mat')
load workspace

You can further optimize this shortcut as you want. As an example, if you want to use the name of the current project to save your workspace,

[~,name] = fileparts(pm('current_project'));
save([name,'_workspace.mat'])
clear
pm('save_project')
pm('open_project', 'you project file.mat')
[~,name] = fileparts(pm('current_project'));
load([name,'_workspace.mat'])

Or if you have your own local startup_local.m or finish_local.m, which are different across your projects, then

cd(fileparts(pm('current_project')));
finish_local;
pm('save_project')
pm('open_project', 'you project file.mat');
cd(fileparts(pm('current_project')));
startup_local;

There will be many ways of optimizing your shortcuts.

===================================

Note 2:

project manager resets your 'userpath' frequently. If you don't know about 'userpath', you don't have to worry. If you control your 'userpath' extensively, reconsider using this program. Otherwise, it is highly recommended to use the default Matlab 'userpath'. See 'help userpath' for more detail.

===================================

Note 3:

You can use automatic installation feature if you don't have any complex customized startup.m/finish.m in many scattered places. If you do have many startup.m/finish.m, renaming those is highly recommended (such as startup_local.m/finish_local.m) and centralize startup.m/finish.m in the Matlab default "userpath" folder. If you want to keep many startup.m/finish.m files in different folders, then please read manual installation section in the help to use Project Manager (it is very easy).

Cite As

Sung Soo Kim (2024). Project Manager (https://www.mathworks.com/matlabcentral/fileexchange/23218-project-manager), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Environment and Settings in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.12.0.0

bug fixes and improvements : startup_sample.m, finish_sample.m scripts were improved. File opening problem was resolved.

1.9.0.0

intro updated, no code mod,

1.8.0.0

installer update, a button for making a shortcut of the current project, No need to restart after installation

1.7.0.0

installer bug fix

1.6.0.0

installer bug fix.

1.4.0.0

installer added (shortcuts will be added to the Matlab "Start" button), bug fixes, loosely tested in both Mac OS X/Windows XP sp3

1.3.0.0

now works in R2011a. unit_test is dropped. use the old version for matlab R2010b or earlier.

1.2.0.0

copyright update

1.1.0.0

Minor bug fix.

1.0.0.0