Code covered by the BSD License  

Highlights from
editall

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 1.63 KB File ID: #17807

editall

by Matt Fig

 

29 Nov 2007 (Updated 30 Nov 2007)

Opens all M-files in directory for editing.

| Watch this File

File Information
Description

editall(dir) opens all M-files in directory dir for editing. If dir is not specified, all M-files in the current directory are opened. I often use this when working on large projects over a period of time. It is useful to issue one command each time I start Matlab that will open all the M-files I am working on. I put this file in ~\MATLAB\R2006a\toolbox\local so that I can call it from whatever directory I am working in currently.

MATLAB release MATLAB 7.2 (R2006a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
29 Nov 2007 Matt Fig

I was informed that this was not working properly in r2007 when placed in the local toolbox. I do not understand this, and would love to have someone explain why! I altered the code so that it should work for both versions. It may take a day to show up. Thanks.

30 Nov 2007 John D'Errico

Matt,

Its usually recommended not to put your own files in the toolbox directories. These directories are cached by Matlab at startup, so if you put a function there, Matlab will not "see" it until the next time you start it up. And any modifications to your function will not be recognized.

Instead, put all of your own functions in a separate directory (or directories) that are placed on the search path. The save the search path, so that matlab will always find your functions when you start up again.

John

30 Nov 2007 Matt Fig

Thanks John,
I was aware of the caching issue, so I always rehash when I alter a file in toolbox. I think I may have an idea of what happened now in my case. It seems that the computer I wrote this one uses xp (and R2006a) and the one I used it with last night has Vista (and R2007a). Vista has a weird thing where it won't let you write to folders or files in 'Program Files', and instead writes to a 'virtual store' and I think this was messing up Matlab somehow. So I was thinking it was a Matlab version conflict, but it was Microsoft, which I guess shouldn't be surprising. Thanks again.

Please login to add a comment or rating.
Updates
30 Nov 2007

For reasons I do not understand, this file works fine in 2006a but only works sometimes in 2007a. I changed it so that it should work in both. If anyone understands this, please let me know the reasons!

Tag Activity for this File
Tag Applied By Date/Time
path Matt Fig 22 Oct 2008 09:37:18
directories Matt Fig 22 Oct 2008 09:37:18
files Matt Fig 22 Oct 2008 09:37:18
edit open mfile all Matt Fig 22 Oct 2008 09:37:18

Contact us at files@mathworks.com