fre, 24 07 2009 kl. 22:20 +0200, skrev Thomas Weber:
> > I wouldn't object to having a 'inst/data' directory, but is that easier
> > to locate from within the code?
>
> I find
> fopen('data/filename');
> simpler than
> fopen('../data/filename');
>
> Okay, I admit it: a weak argument :)
I must admit that I buy your argument :-)
That being said, can you actually do that? Doesn't that require that
your current working directory contains the m-file in question?
Say, you want to read the data as part of a test of 'nanmedian', would
you then have to write something like
directory = fileparts (which ("nanmedian"));
datafile = fullfile (directory, "data", "filename");
?
Søren
------------------------------------------------------------------------------
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev