octave-maintainers
[Top][All Lists]
Advanced

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

concatenation bug?


From: John W. Eaton
Subject: concatenation bug?
Date: Thu, 12 Apr 2007 15:34:47 -0400

Is there some reason that the following must fail?

  x = {1, 2};
  [x, @sin]          
  error: concatenation operator not implemented for `cell' by `function handle' 
operations

It seems that Matlab barfs on this as well, but I don't see why.

The reason I want to use it is to do something like this:

  args = {x, y};
  args = [args, @somefun];
  anotherfun (args{:});

Note that the following does work in Matlab:

  args = address@hidden;
  args = [args, pi/2];
  feval (args{:});

jwe


reply via email to

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