From bug-request at octave dot org Wed Jul 6 00:23:25 2005 Subject: Bug: dec2base.m cannot handle matrices From: cctsim To: bug at octave dot org Date: Wed, 6 Jul 2005 06:22:09 +0100 (BST) Octave version: 2.1.71 Description: dec2base.m cannot handle matrices Possible patch for matlab (7sp2) compatibility: --- /usr/share/octave/2.1.71/m/strings/dec2base.m.orig +++ /usr/share/octave/2.1.71/m/strings/dec2base.m at @ -55,7 +55,7 @@ endif if (prod (size (n)) != length (n)) - error ("dec2base: cannot convert matrices."); + n=n(:); elseif (any (n < 0 | n != fix (n))) error ("dec2base: can only convert non-negative integers.") endif Best Regards cctsim ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com ------------------------------------------------------------- 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 -------------------------------------------------------------