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

조회 수: 1 (최근 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.
Pallov Anand
Pallov Anand 2022년 11월 16일
oh...i forgot to do that, its done now :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by