Code covered by the BSD License  

Highlights from
MATLAB project manager

5.0

5.0 | 1 rating Rate this file 13 Downloads (last 30 days) File Size: 2.97 KB File ID: #41585

MATLAB project manager

by

 

01 May 2013 (Updated )

Missing command-line project manager for MATLAB.

| Watch this File

File Information
Description

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

Examples:
  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.

Git-repository: https://github.com/vfilimonov/matlab-projects

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 (3)
19 Jun 2013 Warwick

useful to me.

31 May 2013 Vladimir

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.

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).

Updates
31 May 2013

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

Contact us