Thread Subject: Feature Request - Matlab Editor - Porject Management

Subject: Feature Request - Matlab Editor - Porject Management

From: Pradeep Kuamr

Date: 26 Sep, 2009 01:57:02

Message: 1 of 5

Hello There,

Though Matlab Editor is awsome in many aspects, it lacks the option to let the user to name and save the current set of documents and settings - we can call it a Project. Usually most of us work on various different projects/tasks, and would have different set of codes open for each project. When we switch between these, you would have to open that list again one by one and usually you dont remember them. It would be awsome if the editor/matlab itlself offers the ability to create projects/tasks/sessions ( whatever you want to call it)..

This would greatly improve my productivity and many other students/researchers out there.

Looking forward to see that Mathworks does soemthing towards this...

I would be glab If somebody let me know of an alternate option to do this.. Of course, I can't live without M-lint, Tiling/splitting of windows etc...

Many Thanks,
Pradeep

Subject: Feature Request - Matlab Editor - Porject Management

From: Steven Lord

Date: 27 Sep, 2009 01:08:18

Message: 2 of 5


"Pradeep Kuamr " <ourpradeep@gmail.com> wrote in message
news:h9jsde$arp$1@fred.mathworks.com...
> Hello There,
>
> Though Matlab Editor is awsome in many aspects, it lacks the option to let
> the user to name and save the current set of documents and settings - we
> can call it a Project. Usually most of us work on various different
> projects/tasks, and would have different set of codes open for each
> project. When we switch between these, you would have to open that list
> again one by one and usually you dont remember them. It would be awsome if
> the editor/matlab itlself offers the ability to create
> projects/tasks/sessions ( whatever you want to call it)..
>
> This would greatly improve my productivity and many other
> students/researchers out there.
>
> Looking forward to see that Mathworks does soemthing towards this...
>
> I would be glab If somebody let me know of an alternate option to do
> this.. Of course, I can't live without M-lint, Tiling/splitting of windows
> etc...

I recommend you speak to Technical Support and describe in depth what you'd
like this feature to do, so they can capture your use case in an enhancement
request.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

Subject: Feature Request - Matlab Editor - Porject Management

From: Matt Fig

Date: 27 Sep, 2009 02:08:02

Message: 3 of 5

"Pradeep Kuamr " <ourpradeep@gmail.com> wrote in message

Until TMW implements this, here is what I do.
All of my projects are in separate folders, so when I want to work on a certain project I just change the working directory to that folder then use my own tools for managing several files. One of these, editall, I put on the FEX.

http://www.mathworks.com/matlabcentral/fileexchange/17807

This utility opens all of the M-Files in the working directory for editing. I wrote several others which are not on the FEX, you may have to do the same.

Subject: Feature Request - Matlab Editor - Porject Management

From: Wilfried

Date: 13 Nov, 2009 14:11:04

Message: 4 of 5

Hallo,

what I use is a modified shortcut from the shortcuts-Toolbar.

So if you never used the shortcuts before and you have the toolbar still visible right-click on it and select 'Organize Shortcuts'. Select 'Toolbar Shortcuts' from the 'Shortcuts' list and click 'New Shortcut'.
In the opening Shortcut Editor you can insert a label for your project in my case 'template'.
In the Callback you insert the following (between the comment lines):
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Saving all opend filenames in a variable
opendDocuments = com.mathworks.mlservices.MLEditorServices.builtinGetOpenDocumentNames;

% close all current in the MATLAB editor opened files
com.mathworks.mlservices.MLEditorServices.closeAll;

% change into your project folder
cd('/path/to/your/project/folder');

% open all your project files into the MATLAB editor
edit('filenameToOpen1.m');
edit('filenameToOpen2.m');

% Opening additional files
% edit('');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

In the end please change the path to your project folder in 'cd' and the files you want to open when you switch to this project. Feel free to append new files or run a script before you start editing your project. The file names of all in the editor opened files are saved in the variable 'opendDocuments' before closing them.

Regards
Wilfried
ps.: you can also set a specific file to each of your projects.

Subject: Feature Request - Matlab Editor - Porject Management

From: Konrad

Date: 14 Dec, 2009 16:54:02

Message: 5 of 5

"Wilfried " <removeTHISwilfried.hortschitz@oeaw.ac.at.REMOVEthis> wrote in message <hdjpdo$e8e$1@fred.mathworks.com>...
> In the Callback you insert the following (between the comment lines):
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%
> % Saving all opend filenames in a variable
> opendDocuments = com.mathworks.mlservices.MLEditorServices.builtinGetOpenDocumentNames;
>
> % close all current in the MATLAB editor opened files
> com.mathworks.mlservices.MLEditorServices.closeAll;
>
> % change into your project folder
> cd('/path/to/your/project/folder');
>
> % open all your project files into the MATLAB editor
> edit('filenameToOpen1.m');
> edit('filenameToOpen2.m');
>
> % Opening additional files
> % edit('');
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%

Thanks for the hint, this is really helpful.

I modefied it a little bit and split your function using a close, load and a save button; to make it more dynamically:

Save:

opendDocuments = com.mathworks.mlservices.MLEditorServices.builtinGetOpenDocumentNames;
save('file name','opendDocuments');
------------

Load:

cd('project path')
load('file name')
windows = cell(opendDocuments);
for cnt = 1:length(windows)
    edit(windows{cnt})
end
clear opendDocuments windows cnt
---------------

Close:

com.mathworks.mlservices.MLEditorServices.closeAll;

----------------

Konrad

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
managing matlab... Wilfried 13 Nov, 2009 09:14:08
project Pradeep Kuamr 25 Sep, 2009 21:59:04
task Pradeep Kuamr 25 Sep, 2009 21:59:04
management Pradeep Kuamr 25 Sep, 2009 21:59:04
session Pradeep Kuamr 25 Sep, 2009 21:59:04
request Pradeep Kuamr 25 Sep, 2009 21:59:04
researcher Pradeep Kuamr 25 Sep, 2009 21:59:04
feature Pradeep Kuamr 25 Sep, 2009 21:59:04
student Pradeep Kuamr 25 Sep, 2009 21:59:04
editor Pradeep Kuamr 25 Sep, 2009 21:59:03
rssFeed for this Thread

Contact us at files@mathworks.com