What does line number 4 is actually doing, i.e. obj = obj@CtrlAf​fineSys(pa​rams);

1 view (last 30 days)
classdef ACC < CtrlAffineSys
methods
function obj = ACC(params)
obj = obj@CtrlAffineSys(params);
end
function Fr = getFr(obj, x)
v = x(2);
Fr = obj.params.f0 + obj.params.f1 * v + obj.params.f2 * v^2;
end
end
end

Accepted Answer

Matt J
Matt J on 15 Nov 2022
It is calling the parent class constructor.
  3 Comments
Matt J
Matt J on 15 Nov 2022
You're welcome, but please Accept-click the answer if your question has been addressed.

Sign in to comment.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!