Swig types can be used by the operators [a,b] or [a;b] if an octave overload functions horzcat.m or vertcat.m are added in a @swig_ref subdirectory. This requires that is_object() (isobject() for octave >= 4.4) returns true for swig types which is ensured by the swig octave runtime.
6 lines
229 B
Matlab
6 lines
229 B
Matlab
% test octaves concatenation operator
|
|
function ret=horzcat(a, b)
|
|
% return the concatenation of two ComplexVal values as a cell array.
|
|
% (not really useful but it tests the concatenation of swig_ref objects)
|
|
ret={a, b};
|
|
end
|