|
From: | David Bateman |
Subject: | Re: Finding an m-file |
Date: | Mon, 06 Feb 2006 18:01:29 +0100 |
User-agent: | Mozilla Thunderbird 0.8 (X11/20040923) |
Simon Webster wrote:
I want to find the directory an m-file lives in (that is on the current path somewhere). I know exist('myfile.m') should return 2 if myfile.m is on the current path, but can I easily get the directory in which the particular myfile.m that octave will execute lives? thanks in advance, Simon
Try which("myfile") D. -- David Bateman address@hiddenMotorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob) 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax) The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary
------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |