From help-octave-request at bevo dot che dot wisc dot edu Tue Dec 14 10:32:44 1999 Subject: problem with imagesc From: "John W. Eaton" To: Michael Roth Cc: help-octave at bevo dot che dot wisc dot edu Date: Tue, 14 Dec 1999 10:33:15 -0600 (CST) On 14-Dec-1999, Michael Roth wrote: | Today I made my first steps with octave (version 2.0.14) under | Suse-linux (6.2). | I encoutered a problem in generating an image using the imagesc - | command. | | For example, the following two lines | | | | >> x=rand(10); | >> imagesc(x) | | | result in | | | parse error near line 165 of file | /usr/share/octave/2.0.14/m/image/saveimage.m | | >>> img_row = [map(img(idx)); zeros (8-n_long, 1)]; | ^ | | error: `saveimage' undefined near line 48 column 3 | error: evaluating index expression near line 48, column 3 | error: called from `image' in file | `/usr/share/octave/2.0.14/m/image/image.m' | error: called from `imagesc' in file | `/usr/share/octave/2.0.14/m/image/imagesc.m' | | | What's wrong? You used --traditional? You can fix the problem by rewriting the line like this: img_row = [map(img(idx)); (zeros (8-n_long, 1))]; instead. jwe ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------