From octave-sources-request at bevo dot che dot wisc dot edu Fri Nov 22 10:16:22 2002 Subject: Re: a couple of simple functions for Matlab compatibility From: Rafael Laboissiere To: schraudo at inf dot ethz dot ch Cc: octave-sources at bevo dot che dot wisc dot edu Date: Fri, 22 Nov 2002 09:45:53 -0600 * schraudo at inf dot ethz dot ch [2002-11-22 06:24]: > while I'm at it, I also wrote a number of trivial to simple functions that > improve octave's compatibility with Matlab. These were created without > reference to the corresponding Matlab code, so there should be no copyright > issues. Feel free to include them in future releases of octave. Besides betaln, besselh1, ans, besselh2, lbeta, and ndims, the functions that you implemented exist already in octave-forge (or even in octave 2.1, as for besselh, lower, and upper): $ tar tfvz /var/tmp/compat.tgz | perl -ne íf(m{/([^/]*)\.m}){print "which $1\n"}'| octave besselh is the dynamically-linked function from the file /usr/lib/octave/2.1.36/oct/i386-pc-linux-gnu/besselh.oct which: `betaln' is undefined factor is the user-defined function from the file /usr/share/octave/2.1.36/site/m/octave-forge/specfun/factor.m isequal is the user-defined function from the file /usr/share/octave/2.1.36/site/m/octave-forge/general/isequal.m isfinite is a built-in mapper function isprime is the user-defined function from the file /usr/share/octave/2.1.36/site/m/octave-forge/specfun/isprime.m isreal is a built-in function primes is the user-defined function from the file /usr/share/octave/2.1.36/site/m/octave-forge/specfun/primes.m repmat is the user-defined function from the file /usr/share/octave/2.1.36/site/m/octave-forge/general/repmat.m which: `besselh1' is undefined which: `ans' is undefined which: `besselh2' is undefined gammaln is a built-in mapper function which: `lbeta' is undefined lower is the user-defined function from the file /usr/share/octave/2.1.36/m/strings/lower.m nchoosek is the user-defined function from the file /usr/share/octave/2.1.36/site/m/octave-forge/specfun/nchoosek.m which: `ndims' is undefined upper is the user-defined function from the file /usr/share/octave/2.1.36/m/strings/upper.m You might be interested in merging/donating your code to the octave-forge project. -- Rafael Laboissiere