Defined method can not be invoked.
Afficher commentaires plus anciens
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 commentaires
Walter Roberson
le 5 Jan 2023
Which method cannot be invoked in what file?
younghwa park
le 5 Jan 2023
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Function Creation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!