comparison Cell.m @ 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
comparison
equal deleted inserted replaced
479:c5705458beb1 480:4ce12f8b561c
10 end 10 end
11 11
12 obj.data = data; 12 obj.data = data;
13 end 13 end
14 14
15 % function str = toString(obj) 15 function str = toString(obj)
16 16 str = sprintf('%s%s', class(obj), toString(obj.data));
17 % end 17 end
18 18
19 % function display(A) 19 % function display(A)
20 % n = size(A.data); 20 % n = size(A.data);
21 21
22 % sizeStr = join(cellfun(@num2str, num2cell(n), 'UniformOutput',false),'x'); 22 % sizeStr = join(cellfun(@num2str, num2cell(n), 'UniformOutput',false),'x');