calling one method from a Static method
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!