swig/Examples/octave/operator/@swig_ref/horzcat.m
Markus Friedrich 7271ea805a Added a octave test for the concatenation operator.
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.
2019-11-24 15:01:55 +01:00

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