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

2 vues (au cours des 30 derniers jours)
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

Réponse acceptée

Matt J
Matt J le 15 Nov 2022
It is calling the parent class constructor.
  3 commentaires
Matt J
Matt J le 15 Nov 2022
You're welcome, but please Accept-click the answer if your question has been addressed.
Pallov Anand
Pallov Anand le 16 Nov 2022
oh...i forgot to do that, its done now :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by