calling one method from a Static method
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Function Handles in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!