From: sscnekro on
Hi folks,

I've downloaded export_fig from
http://www.mathworks.com/matlabcentral/fileexchange/23629):
a few days ago. As I knew that I will not use ML for a while, I just extracted the zipped files to current directory so that I could quickly use this function.

Of course now I'd like to place the files in the appropriate ML folder, but have no idea where. I fancy this is something obvious, but not to me. Thanks for hints!
From: Bjorn Gustavsson on
"sscnekro " <nastanova(a)yahoo.co.uk> wrote in message <hu8193$ha5$1(a)fred.mathworks.com>...
> Hi folks,
>
> I've downloaded export_fig from
> http://www.mathworks.com/matlabcentral/fileexchange/23629):
> a few days ago. As I knew that I will not use ML for a while, I just extracted the zipped files
> to current directory so that I could quickly use this function.
>
> Of course now I'd like to place the files in the appropriate ML folder, but have no idea
> where. I fancy this is something obvious, but not to me. Thanks for hints!
>
In my home directory I have a matlab directory
/home/bjorn/matlab
In that directory I have a Local directory
/home/bjorn/matlab/Local
where I put all files I 'install' after I've downloaded them from the FEX. (actually I have a number of sub-dirs as well). Then in my startup.m I have a line:
My_matlabdir = '/home/bjorn/matlab/Local/';
path(path,[My_matlabdir'])
This appends that directory to the matlab search path.

HTH,
Bjeorn
From: Jan Simon on
Dear sscnekro!

> I've downloaded export_fig from
> http://www.mathworks.com/matlabcentral/fileexchange/23629):
> a few days ago. As I knew that I will not use ML for a while, I just extracted the zipped files to current directory so that I could quickly use this function.
>
> Of course now I'd like to place the files in the appropriate ML folder, but have no idea where. I fancy this is something obvious, but not to me. Thanks for hints!

It is a question of taste. I decided to create a folder called "D:\MFiles\FEX\" -- while other folders containing my projects are in the folder D:\MFiles\... also. Then I expand all submissions from the FEX directly into this folder. This has the advantage, that the pile of almost identical "license.txt" files replace eachother. It would be much nicer if the M-files could contain the author and a pointer to one original license condition file on the MathWorks server. Add the FEX folder permanently to the Matlab path:
addpath('D:\MFiles\FEX', '-end')
savepath

Another idea is to install all FEX submissions to subfolders of a specific folder. This allows to keep the original license.txt files. Then you could include all these folders to the PATH using:
addpath(GENPATH(<absolute_foldername>), '-end').
savepath

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?

Kind regards, Jan
From: sscnekro on
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.

Beyond this point, my general impression from this newsgroup, FEX, etc. is somewhat messy in the sense that the potential of the superiously smart guys (don't count myself there) that are posting news and files is not fully exploited.

For instance, I'm just wondering how about creating a neat list of standardized tags (maybe multi-level), which could anybody use optionally next to own tags. So that e.g. a "3 km" post would obviously be related to "1.864(...) mile". I mean I am missing a bit of classification which for me would enhance orientation in the news. Especially, if under subjects and tags of the sort "help me pleaze", "i am also getting this error" "new to matlab" there eventually can be hidden a serious discussion and smart posts. Not to speak about the option to filter and assort news for logged in users. But I've been told that there is no demand if any for such things...

Back to the issue, many thanks for helping!
From: Bjorn Gustavsson on
"sscnekro " <nastanova(a)yahoo.co.uk> wrote in message <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.
>
Maybe to clarify: I add this in my startup.m that I have in ~/matlab/, together with other assorted settings.

For what it's worth,
Bjeorn