From: Jan Simon on 3 Jun 2010 09:14 Dear Sscnekro! > Maybe I am stupid, but I myself personally find this a good question. In fact, it would make sense to me that before any file is allowed to be posted to FEX, it should pass a few checks and this 'd be one of them. Checking the submissions cannot be done automatically. E.g. I've published a function, which modifies (vectorize) the original FILTFILT function of the Signal-Processing-Toolbox. The user can decide, if the original function is overwritten, a new file name is uesed ("filtfilt_Vectorized.m") or if the new file is created in a folder, which is found before the SPT toolbox folders in the Matlab PATH. The FEX submission MAT2IM would be a fast replacement of Matlab's IND2RGB: http://www.mathworks.com/matlabcentral/fileexchange/26322-mat2im So it might be a good idea to use "IND2RGB" as function name intentionally (and set the parent folder before the SPT in the PATH) to accelerate calls from all image processing functions. An automatic check of naming conflicts cannot be helpful in these cases. I think, the checks must be performed at the user's computer, where such exceptions can be identified and ignored. E.g. a TYPECAST function is ok for Matlab 6.5, but conflicting for Matlab 7. This problem is a similar the "use name of the built-in functions as name of variables"-problem. Matlab 2009a moans in the command window, if I add a folder to the path, which contains a file name interfering with built-in functions. I'm wondering if this mechanism can be expanded to find further conflicts? The tagging, the search function (no success for searching "Savitzk" - I forgot if he is written with a trailing "i" or "y"), and any method to reduce the flood of double posts might be fields for improving the CSSM view from www.mathworks.com. Kind regards, Jan
From: sscnekro on 3 Jun 2010 10:55 Hi, Jan Simon, thanks for your explanation of the issues with FEX. I understand now that the checks 'd need to be done case-to-case as each user's situation may be different. Yet I somehow did not understand from the description of some of the FEXs (I've read only a few ones) such things so as where best to install them and perhaps reference to potential collisions (perhaps including ML release reference?). I am too basic ML user to judge that, yet I fancy there could be a sort of general 'protocol' written down, to guide through pre-installation checks, installation, usage, etc. complemented by some "check functions" as the one you propose... But I have been told by 'Old ML Guys' in the sense that these sites are "not moderated etc snip", so okey...
From: sscnekro on 3 Jun 2010 11:12 Hi Bjeorn, > Maybe to clarify: I add this in my startup.m that I have in ~/matlab/, together with other assorted settings. Please explain to me *gently* what you mean, as I am a basic ML user. What is the effect you want to achieve by altering your startup.m file, compared to just adding a folder incl. subfolders to search paths? > For what it's worth, For me any hint from others is worth reading and considering! Thank you.
From: Bjorn Gustavsson on 3 Jun 2010 11:34 "sscnekro " <nastanova(a)yahoo.co.uk> wrote in message <hu8go4$hea$1(a)fred.mathworks.com>... > Hi Bjeorn, > > > Maybe to clarify: I add this in my startup.m that I have in ~/matlab/, together with other assorted settings. > > Please explain to me *gently* what you mean, as I am a basic ML user. What is the effect you want to achieve by altering your startup.m file, compared to just adding a folder incl. subfolders to search paths? > > > For what it's worth, > > For me any hint from others is worth reading and considering! Thank you. > With the way I have the "Local" directory set up it contains a number of subdirectories, something like the structure in $matlabroot/toolboxes/. To avoid having to add most (but not all) of those subdirectories every time I start matlab I have the addpath commands in my startup.m (in addition to other settings.). Then I also have another set-up file that lets me choose between different versions of my projects (development versions or the current releases). For the good stuff I have from FEX I want the paths set as automatically as the path to the matlab-toolboxes. My 5p, Bjeorn
From: Steven Lord on 3 Jun 2010 22:19 "sscnekro " <nastanova(a)yahoo.co.uk> wrote in message news:hu84no$7lu$1(a)fred.mathworks.com... > Hey guys, > > thanks for quick replies. I found it a good way to create a special folder > for fex stuff. I placed the export_fig files there and added this path, > although did not alter the startup.m. > > Re: Jan Simon [> To my surprise I could not find a function, which checks > if the file names are unique. How do you (the other CSSMers) check, if an > installed FEX submission collides with the names of other toolboxes? I've > written a simple function to perform such a check -- it is worth to submit > it to the FEX? ] > > Maybe I am stupid, but I myself personally find this a good question. In > fact, it would make sense to me that before any file is allowed to be > posted to FEX, it should pass a few checks and this 'd be one of them. If you have suggestions for enhancements you'd like to see made in the File Exchange or any piece of MATLAB Central, feel free to submit them to the files email address at the bottom of the main MATLAB Central page: http://www.mathworks.com/matlabcentral -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
First
|
Prev
|
Pages: 1 2 Prev: value over flow diagram Next: delete rows where first column does not contain 2 the same |