We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 144cd13 commit e18862dCopy full SHA for e18862d
src/+otp/RHS.m
@@ -40,6 +40,16 @@
40
newF = @(t, y) objF(t, y) + otherF(t, y);
41
newRHS = otp.RHS(newF);
42
end
43
+
44
+ function newRHS = subsref(obj, vs)
45
+ if vs.type == '.'
46
+ newRHS = obj.(vs.subs);
47
+ else
48
+ objF = obj.F;
49
+ newF = @(t, y) subsref(objF(t, y), vs);
50
+ newRHS = otp.RHS(newF);
51
+ end
52
53
54
function opts = odeset(obj, varargin)
55
opts = odeset( ...
0 commit comments