Commit 30bf24d 1 parent 3dfcef0 commit 30bf24d Copy full SHA for 30bf24d
File tree 2 files changed +5
-11
lines changed
2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 55
55
if isempty(Type .typename )
56
56
parsed = types .untyped .Set(...
57
57
[attributeProperties ; datasetProperties ; groupProperties ; linkProperties ]);
58
-
59
- if isempty(parsed )
60
- % special case where a directory is simply empty. Return itself but
61
- % empty
62
- parsed(root ) = [];
63
- end
64
58
else
65
59
if groupProperties .Count > 0
66
60
% elide group properties
Original file line number Diff line number Diff line change 70
70
function cnt = Count(obj )
71
71
cnt = obj .Map .Count ;
72
72
end
73
-
73
+
74
74
% overloads size(obj)
75
75
function varargout = size(obj , dim )
76
76
if nargin > 1
80
80
varargout{1 } = obj .Count ;
81
81
end
82
82
else
83
- if nargout == 1
83
+ if nargout == 0 || nargout == 1
84
84
varargout{1 } = [obj .Count , 1 ];
85
85
else
86
86
varargout = num2cell( ones(1 , nargout ) );
@@ -193,9 +193,9 @@ function validateAll(obj)
193
193
194
194
methods (Access =protected )
195
195
function displayEmptyObject(obj )
196
- hdr = [ ' Empty ' ...
197
- ' <a href="matlab:helpPopup types.untyped.Set" style="font-weight:bold">' ...
198
- ' Set</a>' ];
196
+ hdr = sprintf( ' %s with no elements. ' , ...
197
+ [ ' <a href="matlab:helpPopup types.untyped.Set" style="font-weight:bold">' ...
198
+ ' Set</a>' ]) ;
199
199
footer = getFooter(obj );
200
200
disp([hdr newline footer ]);
201
201
end
You can’t perform that action at this time.
0 commit comments