Code covered by the BSD License  

Highlights from
Save and load Matlab "projects" in editor

4.0

4.0 | 1 rating Rate this file 33 Downloads (last 30 days) File Size: 3.33 KB File ID: #41505
image thumbnail

Save and load Matlab "projects" in editor

by

 

Saves and loads Matlab "projects" in editor (currently-open files, working directory, search path).

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information
Description

This GUI-driven tool makes it easier to switch from task to task by allowing you to save the current state of your Matlab Editor session as a "project", for later re-loading.

A Matlab "project" consists of the m-files that are currently open in the Matlab Editor. Loading a project
returns the Matlab Editor to the state it was in when the project was saved, with the same m-files open to the same lines, the working directory set to that of the loaded project and the Matlab search path set back to its saved value.

Required Products MATLAB
MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
30 Jul 2013 Kevin Bartlett

That's a good suggestion, Per. I could presumably use matlabroot instead of the literal path for built-in files. I'll try to incorporate this idea into the code when I have more time.

29 Jul 2013 per isakson

I often have many files open at the same time and it is very convenient to be able to switch between sets of files. matproj works well.

However, some days ago matproj caused me some trouble. This is what happened.

Background: I've used R2012a until recently. Matlab was first updated to R2012b, which I didn't use because of ribbon-phobia. Now, Matlab is updated to R2013a, which I use because some bugs are fixed.

Incident: Without too much thinking, I loaded an old "project" with matproj and I was instantly in trouble. The path to the R2013a installation was replaced by the path to R2012a. For me that was no big problem once I realized what had happened.

Proposal: Modify matproj so that it does not affect the path to Matlab proper.

Contact us