Skip to content

Commit 1e66c17

Browse files
committed
cat meow
1 parent 1d3976e commit 1e66c17

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/+otp/RHS.m

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,20 @@
6464
newRHS = otp.RHS(newF);
6565
end
6666

67-
function newRHS = cat(obj, other)
68-
error('');
67+
function newRHS = cat(dim, varargin)
68+
newF = @(t, y) [];
69+
if dim == 1
70+
for i = 1:numel(varargin)
71+
oldRHS = varargin{i};
72+
oldF = oldRHS.F;
73+
newF = @(t, y) [newF(t, y); oldF(t, y)];
74+
end
75+
end
76+
newRHS = otp.RHS(newF);
6977
end
7078

71-
function newRHS = size(obj)
72-
error('');
79+
function s = size(~)
80+
s = [1, 1];
7381
end
7482

7583
function opts = odeset(obj, varargin)

0 commit comments

Comments
 (0)