Hi all,
I have been trying to find a solution for it in the forum and documentation, but haven't turned up with a solution or reference to this error.
What am I trying to do?
I am trying to create a matlab.System object named SingleAgent ( SingleAgent.m )with the following code
classdef SingleAgent < matlab.System & AgentPlant
methods(Access = protected)
function y = stepImpl(obj,u)
As seen above, I am trying to inherit a handle object named AgentPlant which I am instantiating within the stepImpl() of the SingleAgent.
The definition of the AgentPlant - handle object (in AgentPlant.m) is as follows:
classdef AgentPlant < handle
function obj = AgentPlant()
I am trying to add the matlab.System object within Simulink (I am attaching the Simulink file which does this, if it helps). However, I am not able to do it and I get the error as defined in the summary. I am also attaching the screen-shot and files associated with this error I am facing.
Please let me know if anyone in the community has faced this error before, and if so how did you manage to resolve it?
Looking forward to your comments. Thank you!