The tooltip seems to get its string by using the disp
method. Override disp
on your class. In the method body, construct your desired string however you want and then call disp
on it. In R2012a at least this works for the debugger tooltip.
Note that you'll need to do a clear classes
after editing the class to get MATLAB to recognize the overridden disp
.