[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Does Octave contain the wavelet transform toolbox?
From: |
John W. Eaton |
Subject: |
Re: Does Octave contain the wavelet transform toolbox? |
Date: |
Tue, 25 Mar 2008 00:40:14 -0400 |
On 24-Mar-2008, DigitalPig wrote:
| Thanks for providing this. After I unzip this file, it said it can't
| find octave path.
|
| I think it's because Octave doesn't have matlabroot function...
You could define your own. It would be
function val = matlabroot ()
val = OCTAVE_HOME;
endfunction
That's precisely what will appear in Octave 3.1.
| I modified it a little, and show the diff here:
| *** WavePath.m 2008-03-24 22:57:26.000000000 -0400
| --- WavePath-2.m 2008-03-24 23:46:18.000000000 -0400
| ***************
| *** 19,29 ****
| WAVELABPATH = ['Macintosh HD:Build 850:Wavelab$VERSION$',
PATHNAMESEPARATOR];
| MATLABPATHSEPARATOR = ';';
| WAVELABPATH=strcat(matlabroot,'/toolbox/Wavelab850/')
| ! elseif isunix,
| PATHNAMESEPARATOR = '/';
| WAVELABPATH = [pwd, PATHNAMESEPARATOR];
| MATLABPATHSEPARATOR = ':';
| WAVELABPATH=strcat(matlabroot,'/toolbox/Wavelab850/')
| elseif strcmp(Friend(1:2),'PC');
| PATHNAMESEPARATOR = '\';
| WAVELABPATH = [cd PATHNAMESEPARATOR];
| --- 19,35 ----
| WAVELABPATH = ['Macintosh HD:Build 850:Wavelab$VERSION$',
PATHNAMESEPARATOR];
| MATLABPATHSEPARATOR = ';';
| WAVELABPATH=strcat(matlabroot,'/toolbox/Wavelab850/')
| ! elseif exist('OCTAVE_VERSION'),
| ! PATHNAMESEPARATOR = '/';
| ! WAVELABPATH = [pwd, PATHNAMESEPARATOR];
| ! MATLABPATHSEPARATOR = ':';
| ! WAVELABPATH=strcat('/usr/share/octave/2.9.12/m','/Wavelab850/')
| ! elseif isunix
I haven't looked at the original file for all the context, but this
seems wrong since Octave also runs on Windows systems.
Also, you probably want to install in a subdirectory of the site
directory rather than in the 2.9.12 directory, and it would probably
be best not to hardcode a version number... You can get the site
directory with
octave_config_info ("localfcnfiledir")
If this should be version- or api-specific, you should use
"localapifcnfiledir" or "localverfcnfiledir".
jwe