Fixed horzcat behaviour.

The input arguments (concatenated objects) should not be modified by
the overloaded method. Use a copy.
parent 75ce34cc
......@@ -43,7 +43,7 @@ switch nargin
case 1
o = varargin{1};
otherwise
o = concatenate(varargin{1}, varargin{2});
o = concatenate(copy(varargin{1}), copy(varargin{2}));
if nargin>2
o = horzcat(o, varargin{3:end});
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment