function [fh1, fh2] = foo () obj = mycls (); fh1 = @obj.meth; fh2 = @obj.smeth; end