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

1 visualización (últimos 30 días)
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

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by