On Sun, Mar 25, 2012 at 05:16:52PM +0200, Philip Nienhuis wrote:
> Clemens Buchacher wrote:
> >
> >The io packages seems to parse the installation directory from pkg('list')
> >output for different reasons, but I find this quite ugly:
> >
> > pkglist = pkg ("list");
> > javapkgind = find (cellfun(@(x) strcmp(x.name, "java"), pkglist), 1,
> > "first");
>
> (no offense taken) What is so ugly about it?
> (not that it's my code, yet to me it seems fairly succinct and
> AFAICS it works OK)
Ah, never mind. At that point I thought pkg("list") returned a string
(the usual output) rather than a cell array.
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev