help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: conv([1,2],[3,4]) fails


From: Dirk Eddelbuettel
Subject: Re: conv([1,2],[3,4]) fails
Date: Sat, 3 May 1997 18:50:19 -0400 (EDT)

  Jeff> When I type the following at the interpreter prompt I get the
  Jeff> following error:
  Jeff> 
  Jeff> octave:28> conv([1,2],[3,4])
  Jeff> error: conv: both arguments must be vectors
  Jeff> 
  Jeff> Lookinging into the CONV script (octave/2.0.4/m/polynomial/conv.m)
                                                ^^^^^
  Jeff> I see the following test that is causing my trouble:
  Jeff> 
  Jeff> if (is_matrix (a) || is_matrix (b))
  Jeff>   error("conv: both arguments must be vectors");
  Jeff> endif

This is fixed in octave-2.0.5:

  if (! (is_vector (a) && is_vector (b)))
    error("conv: both arguments must be vectors");
  endif                 

where it runs just fine:

address@hidden:~/progs/octave> octave
Octave, version 2.0.5 (i486-debian-linux-gnu).
Copyright (C) 1996 John W. Eaton.
This is free software with ABSOLUTELY NO WARRANTY.
For details, type `warranty'.

octave:1> conv([1,2],[3,4])
ans =

   3  10   8                

Hope this helps, Dirk

-- 
    Dirk Eddelbuettel     address@hidden     address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]