calling one method from a Static method
Afficher commentaires plus anciens
Hello,
Here is the class definition:
classdef first < handle
methods (Static)
function hello
obj_first.bye
end
end
methods
function bye(obj)
disp('that works')
end
end
end
Here are my commands:
>> obj_first=first;
>> obj_first.bye
that works
>> obj_first.hello
Undefined variable "obj_first" or class "obj_first.bye".
Error in first.hello (line 4)
obj_first.bye
>>
Can you please help me?
Thank you very much
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Function Handles dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!