error: subplot: columns, rows, and index have to be scalars

John W. Eaton jwe at octave.org
Tue Feb 10 08:40:25 CST 2009


On 10-Feb-2009, \zx?ch^m wrote:

| Hi all,
| 
| I founded an error with subplot command when I try to run the below code:
| 
| clc;
| nt=0:10; xn=0+sqrt(.4) + randn(1,11);
| 
| subplot(2,2,1)
| plot(nt,xn)
| subplot(2,2,2)
| plot(nt,xn)
| subplot(2,2,3:4)
| plot(nt,xn)

| Octave was configured for "x86_64-suse-linux-gnu".
| error: subplot: columns, rows, and index have to be scalars
| error: evaluating if command near line 72, column 3
| error: called from `subplot' in file
| `/usr/share/octave/3.0.3/m/plot/subplot.m'
| error: near line 9 of file `/home/zxoch/TeX/Xcripts/BUGS/xbugsubplot.m'

I don't see this as a bug so much as a missing feature.  So someone
needs to implement this feature to make it work in Octave.

jwe


More information about the Bug-octave mailing list