help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distribute "data files" with a package


From: Julien Bect
Subject: Re: Distribute "data files" with a package
Date: Mon, 31 Mar 2014 19:32:34 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Le 31/03/2014 17:40, Martin Helm a écrit :
Am 31.03.2014 17:31, schrieb Philip Nienhuis:
loc = which ('<function>);

and the answer is the full path to that function in your package. Just
replace the last entry (the function file name) by <subdir>/<datafilename>
and you're all set.
Something like

strjoin({fileparts(which("func_name")),"subdir","test.jpg"}, filesep)

Why not simply :

fullfile (fileparts (which ("func_name")), "subdir", "test.jpg")

?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]