Skip to content

Commit 7305bba

Browse files
committed
[fix] allow _ArraySize_ to be a scalar in loadbj
1 parent 40841d0 commit 7305bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loadbj.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
if (~isempty(type))
275275
if (count >= 0)
276276
[object, adv] = parse_block(inputstr, pos, type, count, varargin{:});
277-
if (~isempty(dim))
277+
if (~isempty(dim) && length(dim) > 1)
278278
object = permute(reshape(object, fliplr(dim(:)')), length(dim):-1:1);
279279
end
280280
pos = pos + adv;

0 commit comments

Comments
 (0)