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

2 次查看(过去 30 天)
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

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Whos 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by