Hello,
I'm trying to call a method of a class in order to calculate one of the properties of the class, but I'm getting an error.
classdef Module properties Parameters; StateVariables; ControllableInputs; StateSpace; end methods function this =Module(Parameters,StateVariables,ControllableInputs) % class constructor
if(nargin > 0) this.Parameters = Parameters; this.StateVariables = StateVariables; this.ControllableInputs = ControllableInputs; this.StateSpace = FindStateSpace(Parameters,StateVariables,ControllableInputs); end end function StateSpace = FindStateSpace(Parameters,StateVariables,ControllableInputs) .... end end end
This is producing an error "Undefined function 'FindStateSpace' for input arguments of type 'sym'." Can someone please tell me what I'm doing incorrectly, and how to fix this problem? I think this is probably a very very basic question, but I'm a novice with MATLAB object oriented programming.
Thank you, Kevin
Best Answer