help-octave
[Top][All Lists]
Advanced

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

Re: Linking Octave to Cantera - concatenation error


From: Judd Storrs
Subject: Re: Linking Octave to Cantera - concatenation error
Date: Sat, 5 Dec 2009 16:18:06 -0500

I think this is a bug in octave. I can reproduce it by creating

@foo/foo.m:
function obj = foo()
   obj.name = "foo" ;
   obj = class(obj, "foo") ;

Then, using octave compiled from somewhat recent development sources
9840:c0b54271904b, I see:

octave:1> a = foo() ;
octave:2> b = foo() ;
octave:3> [ a b ]
error: concatenation operator not implemented for `struct' by `class' operations
octave:3> { a b }
ans =

{
}
octave:4> c = cell(2,1)
c =

{
  [1,1] = [](0x0)
  [2,1] = [](0x0)
}

octave:5> c{1} = a
c =

{
  [2,1] = [](0x0)
}

octave:6> c{2} = b
c =

{
}

Unfortunately, I don't know how to fix this. You should submit a bug report.


--judd


reply via email to

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