Code covered by the BSD License  

Highlights from
Multiple Concurrent Workspaces (Updated 2)

4.5

4.5 | 6 ratings Rate this file 15 Downloads (last 30 days) File Size: 9.98 KB File ID: #12522

Multiple Concurrent Workspaces (Updated 2)

by

 

03 Oct 2006 (Updated )

A function that simulates multiple workspaces without saving info to disk

Editor's Notes:

This file was a File Exchange Pick of the Week

| Watch this File

File Information
Description

File updated to include separate paths for each workspace.

************************

File updated to include workspace descrtipions and to track workspace working directories. Also fixed a typo in the code for the 'send variables' utility.

************************

ws.m simulates the existence of multiple independent workspaces without needing to save information to disk. Each workspace exists independently, so commands such as 'clear' affect only the current workspace (i.e. do not erase alternate workspaces).

The command allows the user to apply who, whos, and clear (including with the optional 'global' keyword) to other workspaces. Variables can also be copied between workspaces using import and send parameters. Sophisticated variable and workspace specification are supported using wildcards and colons.

The function can be used to maintain independence among tasks (e.g. you are doing one thing, then want to run some other things without losing your place or opening other sessions), or as a convenient way of moving workspace environments between functions.

The help in the function describes the various ways of using it, as well as the various parameters that can be provided.

Note: This is just a single stand-alone function. It does not overload or replace any other functions.

MATLAB release MATLAB 7 (R14)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
02 Sep 2011 Richard Heitz  
28 Oct 2009 Jan Gläscher

Great piece of software. I use it *all the time*. Thanks!

14 Nov 2006 Jeff Dunne

I don't think so. That would require making fairly major changes to external functions. In such cases you are probably better off just opening another ML session.

12 Nov 2006 Fabian Kloosterman

Very nice utility. Would it be possible to have independent figures for each workspace?

10 Nov 2006 b d

Doesn't seem to work on R12.

R12 doen't like the double || for an "or" in your if statements. R12 uses a single |.

Also doesn't like gl.(gvars{j})

16 Oct 2006 Jeff Dunne

Sorry. Misread your comment. It has independent working directories, not independent paths. Yes, this would not be hard. I'll include it. Thanks.

16 Oct 2006 Jeff Dunne

If you have the current version downloaded, it should already do that. If you are talking about something else, please let me know.

16 Oct 2006 E Magee

This is a great utility. Is there any way to add the ability to have indedendent paths in each workspace?

13 Oct 2006 Jim Eastman

I've been using this for exactly one hour, and I see it being wonderfully useful in my work.

05 Oct 2006 Gorden Jemwa

Doug, I nominate this for pick of the week!

Updates
05 Oct 2006

File updated to include workspace descriptions in addition to indices. Workspaces selectable using numbers (as before) or description matching. Supporting enhancements to '?' parameter as well. Thanks to Gorden Jemwa for the suggestion.

13 Oct 2006

Updated to include workspace directories. Also, fixed a typo in code.

Contact us