Mercurial > repos > public > sbplib
changeset 480:4ce12f8b561c feature/sublassable_cellarray
Implement to string method
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 02 Aug 2017 12:01:25 +0200 |
parents | c5705458beb1 |
children | 970f1df2bfcf |
files | Cell.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Cell.m Wed Aug 02 11:19:10 2017 +0200 +++ b/Cell.m Wed Aug 02 12:01:25 2017 +0200 @@ -12,9 +12,9 @@ obj.data = data; end - % function str = toString(obj) - - % end + function str = toString(obj) + str = sprintf('%s%s', class(obj), toString(obj.data)); + end % function display(A) % n = size(A.data);