Code covered by the BSD License  

Highlights from
MATLAB project manager

4.5 | 3 ratings Rate this file 11 Downloads (last 30 days) File Size: 2.97 KB File ID: #41585 Version: 1.1

MATLAB project manager


Vladimir (view profile)


01 May 2013 (Updated )

Missing command-line project manager for MATLAB.

| Watch this File

File Information

Manages current working directory and files that are opened in MATLAB editor (but not the workspace) for different projects.

Usage: PROJECTS(cmd, projectName)

PROJECTS('list') shows all stored projects. Arrow marks active project.

PROJECTS('active') returns the name of the active project

PROJECTS('show') shows information about the current project
PROJECTS('show', project_name) shows information about the project

PROJECTS('close') closes all opened files

PROJECTS('save') saves current working directory and editor state under the active project
PROJECTS('save', projectName) saves current working directory and editor state under the specified project name

PROJECTS('load') restores the project "default"
PROJECTS('load', projectName) restores the project with specified name

PROJECTS('open') is synonym for PROJECTS('load')

PROJECTS('rename', newName) renames the active project
PROJECTS('rename', projectName, newName) renames the project

PROJECTS('delete') deletes the active project
PROJECTS('delete', projectName) deletes the project with specified name

  projects list
  projects save myProject
  projects close
  projects load default
  projects rename myProject myLibrary

All projects are stored in the %userpath%/projects.mat. This file with the empty "default" project is created at the first run of the script.
First project always has name "default".
MATLAB versions older than R2011a (7.12) are not supported.


Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
Other requirements MATLAB version no earlier than R2011a (7.12)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
03 Oct 2015 Warwick

Worked fine in 2015a, but returns "Variable output array "varargout" must be a cell array.

Error in projects (line 49)
function varargout = projects(cmd, varargin)"

in 2015B.

Comment only
27 Mar 2015 Bruce

Bruce (view profile)

Very useful... Wondering about a couple of conceptual changes. I'm sure 99% of the folks who use this rename the default project to something that's more meaningful. When that project is "done", we'd like to be able to delete that project, but we can't because the code "thinks" that project #1 is default and therefor undeletable. How about changing the logic so that you can't delete the only project in the list? A quick look at the code says it's a bit more complicated than that, but it would make the package far more useful (at least in my opinion).

27 Mar 2015 Bruce

Bruce (view profile)

19 Jun 2013 Warwick

useful to me.

31 May 2013 Vladimir

Vladimir (view profile)

Hi, per isakson. Thank you for the bug report.

I updated the script (it should appear here shortly, or the new version is on github) - now it will call "userpath('reset')" if the userpath is empty.

Comment only
28 May 2013 per isakson

My first try resultet in:

Subscript indices must either be real positive integers or logicals.
Error in projects (line 65)
projectsList(1).ActiveDir(end) = [];

The reason is that the function, userpath, returns empty on my system (R2012a).

Comment only
31 May 2013 1.1

Small bugfix: if userpath is empty - the script will reset it to the default value

Contact us