Comments on: Save and Load MATLAB Projects in the Editor https://blogs.mathworks.com/pick/2013/07/26/save-and-load-matlab-projects-in-the-editor/?s_tid=feedtopost Jiro and Sean share favorite user-contributed submissions from the File Exchange. Thu, 05 Dec 2013 18:59:52 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: Guest Picker https://blogs.mathworks.com/pick/2013/07/26/save-and-load-matlab-projects-in-the-editor/#comment-23878 Fri, 06 Sep 2013 14:06:31 +0000 https://blogs.mathworks.com/pick/?p=4717#comment-23878 Hi Troy,

Thanks for pointing us to matlabState, it does look good. Unfortunately, it relies heavily on undocumented functionality which makes it ineligible for recognition here.

%Sean

]]>
By: Troy Grossarth https://blogs.mathworks.com/pick/2013/07/26/save-and-load-matlab-projects-in-the-editor/#comment-23874 Wed, 04 Sep 2013 19:50:36 +0000 https://blogs.mathworks.com/pick/?p=4717#comment-23874 You should also check out matlabState.m. It does all the same things but also saves and restores debug break points, plots, variables, and command window history.

https://www.mathworks.com/matlabcentral/fileexchange/37486-matlab-state

]]>
By: Sean de Wolski https://blogs.mathworks.com/pick/2013/07/26/save-and-load-matlab-projects-in-the-editor/#comment-23765 Tue, 13 Aug 2013 14:21:29 +0000 https://blogs.mathworks.com/pick/?p=4717#comment-23765 Hi Thierry,

To package the App, I literally just added matrpoj.m as the main file and selected an icon. It wasn’t enough work to warrant posting it.

I like your fix for merging :)

%Sean

]]>
By: Thierry Dalon https://blogs.mathworks.com/pick/2013/07/26/save-and-load-matlab-projects-in-the-editor/#comment-23744 Fri, 09 Aug 2013 18:27:40 +0000 https://blogs.mathworks.com/pick/?p=4717#comment-23744 There are other FEX contributions on the same topic:
see also https://www.mathworks.com/matlabcentral/fileexchange/41585-matlab-project-manager and
https://www.mathworks.com/matlabcentral/fileexchange/23218-project-manager.
I prefer having all my projects saved in one single file (see other FEX projects implementation) instead of one file per project.
Advantage of matproj as you noticed is that is saves as well the selection/position.
What about posting your App version and the simple correction for merging in this Post?

% Close existing project – files opened in Editor
docHndl = matlab.desktop.editor.getAll();
numFiles = length(docHndl);
if numFiles>0,
answ=questdlg(‘Do you want to close files already opened in the Editor?’,’Close opened Files?’,…
‘Yes’,’No’,’Yes’);
drawnow
if strcmp(answ,’Yes’),
% closeNoPrompt(docHndl)
for iFile = 1:numFiles
docHndl(iFile).close;
end
end
end

]]>