Defined method can not be invoked.
Show older comments
I want to extend ss object. But, the methods can not de invoked in the file.
Am I using wrong way?
Here is my object
classdef ssSpring < ss
%SSSPRING Summary of this class goes here
% Detailed explanation goes here
properties (Access = public)
x0;
end
methods
function sys = ssSpring()
sys.A=[0,0,0,1,0,0;0,0,0,0,1,0;0,0,0,0,0,1;-1,1,0,0,0,0;1,-2,1,0,0,0;0,1,-1,0,0,0];
sys.B=[0;0;0;1;0;0];
sys.C=[0,0,1,0,0,0];
sys.D=[0];
sys.x0=[0.323811195852370;0.430986087686128;0.764897800510776;0.996462675076854;0.265018285144099;0.792067001328556];
end
end
methods (Access=public)
function b = printa(a)
b=a;
end
end
end
2 Comments
Walter Roberson
on 5 Jan 2023
Which method cannot be invoked in what file?
younghwa park
on 5 Jan 2023
Accepted Answer
More Answers (0)
Categories
Find more on Function Creation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!