1) get the result you want to show
2) get the handle(id) of text or editor object
3) convert number into string, num2str(a), where a is an varible for saving result
then you can use the way provide by obove message to update the STRING of the object.